windows powershell
scoop install python
Python 版本 3.10.6
然后升级 pip ,报错(用管理员身份也一样报错)
python.exe -m pip install --upgrade pip
Requirement already satisfied: pip in c:\users\brucm\scoop\persist\python\lib\site-packages (22.2.1)
Collecting pip
Using cached pip-22.2.2-py3-none-any.whl (2.0 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 22.2.1
Uninstalling pip-22.2.1:
Successfully uninstalled pip-22.2.1
WARNING: Failed to write executable - trying to use .deleteme logic
Rolling back uninstall of pip
Moving to c:\users\brucm\scoop\persist\python\lib\site-packages\pip-22.2.1.dist-info\
from C:\Users\brucm\scoop\persist\python\Lib\site-packages\~ip-22.2.1.dist-info
Moving to c:\users\brucm\scoop\persist\python\lib\site-packages\pip\
from C:\Users\brucm\scoop\persist\python\Lib\site-packages\~ip
Moving to c:\users\brucm\scoop\persist\python\scripts\
from C:\Users\brucm\scoop\persist\python\~cripts
ERROR: Could not install packages due to an OSError: [WinError 3] 系统找不到指定的路径。: 'C:\\Users\\brucm\\scoop\\apps\\python\\current\\Scripts\\pip.exe' -> 'C:\\Users\\brucm\\scoop\\apps\\python\\current\\Scripts\\pip.exe.deleteme'
1
zhangbo1191 2022-08-24 12:55:06 +08:00 via iPhone
|
2
ncepuzs 2022-08-24 13:11:39 +08:00
你试试用 pip 随便安装一个包,如果 pip 可升级,安装结束后在底下应该会打印出如何升级
|
4
brucmao OP @zhangbo1191 解决了,使用 get-pip.py 安装成功
https://pip.pypa.io/en/stable/installation/ 奇怪这个 issues ,scoop 说解决了,我完全卸载 python 并删除所以相关文件夹,重新安装 python ,用自带升级还是失败,最后还是 get-pip.py 搞定 |