正文
D:\dev-env\Python3913>pip3 install --upgrade pip
Requirement already satisfied: pip in d:\dev-env\python3913\lib\site-packages (22.0.4)
Collecting pip
Using cached pip-24.3.1-py3-none-any.whl (1.8 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 22.0.4
Uninstalling pip-22.0.4:
Successfully uninstalled pip-22.0.4
ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'D:\\dev-env\\Python3913\\~cripts\\pip3.exe'
Consider using the `--user` option or check the permissions.
使用--user
后
D:\dev-env\Python3913>pip3 install --user upgrade pip
ERROR: Could not find a version that satisfies the requirement upgrade (from versions: none)
ERROR: No matching distribution found for upgrade
查看pip版本
D:\dev-env\Python3913>pip --version
pip 24.3.1 from D:\dev-env\Python3913\lib\site-packages\pip (python 3.9)
啊?最新版pip安装成功了,这不会有什么问题吧,算了哈哈