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'