一、
WARNING: You are using pip version 21.0.1; however, version 21.1 is available.
You should consider upgrading via the 'd:\programfiles\ddproject1\venv\scripts\python.exe -m pip install --upgrade pip' command.
解决方法:使用 pip install -U pip 更新
查看版本pip --version
二、ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'd:\\programfiles\\ddproject1\\venv\\scripts\\pip.exe'Consider using the `--user` option or check the permissions.
解决方法
将pip install ...加入--user为pip install --user ...即可
如果还是有问题,可以以管理员权限运行cmd再输入上述命令行试试~
三、解决ModuleNotFoundError: No module named 'pip'问题
python -m ensurepip
python -m pip install --upgrade pip #更新
网友评论