在安装模块的时候发现系统报错如下:
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\\Users\\Dell\\AppData\\Local\\Temp\\pip-req-tracker-_nyodpl_\\e497bd74205deb88b286d3556502f61a4d67dd2b0bf63d8a57f23ee7'
WARNING: You are using pip version 20.2.3; however, version 22.0.3 is available.
You should consider upgrading via the 'c:\users\dell\pycharmprojects\untitled1\venv\scripts\python.exe -m pip install --upgrade pip' command.
意思是pip版本太低了,上面很明显的说明了需要安装更高的版本,解决方式如下:
C:\Users\Dell>python -m pip install --upgrade pip
Collecting pip
Downloading pip-22.0.3-py3-none-any.whl (2.1 MB)
|████████████████████████████████| 2.1 MB 12 kB/s
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.0.2
Uninstalling pip-20.0.2:
Successfully uninstalled pip-20.0.2
Successfully installed pip-22.0.3