Closed
Description
Description
Although pip has successfully upgraded itself, an error is still prompted in cmd. This error should not show up。
http://www.gotopjs.top/download/pip3.jpg
Expected behavior
should show that the installation was successful
pip version
22.0.4
Python version
3.10.3
OS
windows 10
How to Reproduce
(myenv) C:\myenv\Scripts>pip install -U --force-reinstall pip
Output
(myenv) C:\myenv\Scripts>pip install -U pip
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: pip in c:\myenv\lib\site-packages (22.0.4)
(myenv) C:\myenv\Scripts>pip install -U --force-reinstall pip
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pip
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/4d/16/0a14ca596f30316efd412a60bdfac02a7259bf8673d4d917dc60b9a21812/pip-22.0.4-py3-none-any.whl (2.1 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] 拒绝访问。: 'C:\\Users\\Win10\\AppData\\Local\\Temp\\pip-uninstall-cpk_2rzc\\pip.exe'
Check the permissions.
(myenv) C:\myenv\Scripts>
Code of Conduct
- I agree to follow the PSF Code of Conduct.