Read that a pip install XXX modules can be installed directly. Here is the specific operation
1. Add the environment variable to D: \ Python \ Scripts \ pip.exe
2. Open cmd switch to installation of python
3.pip install requests
4. Open Pycharm, run import requests
Problems encountered and the corresponding intermediate approach
Error1: twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed.
Solution: pip install PyHamcrest
Error2:You are using pip version 10.0.1, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Solution: python -m pip install --upgrade pip (the premise is to first delete the lib\site-packages (10.0.1)
pip-10.0.1.dist-info is deleted)
wisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed.