[英]pip install x no longer working after upgrading pip?
I have recently upgraded to the latest version of pip and this changed the behaviour of my pip installer.我最近升级到了最新版本的 pip,这改变了我的 pip 安装程序的行为。
Where before I could simply input pip install requests
I now have to write python -m pip install requests
, otherwise the following error happens:在我可以简单地输入
pip install requests
之前,我现在必须编写python -m pip install requests
,否则会发生以下错误:
Fatal error in launcher: Unable to create process using '"c:\users\xxxx\appdata\local\programs\python\python39\python.exe" "C:\Users\xxxx\AppData\Local\Programs\Python\Python39\Scripts\pip.exe" install requests': The system cannot find the file specified.启动器中的致命错误:无法使用 '"c:\users\xxxx\appdata\local\programs\python\python39\python.exe" "C:\Users\xxxx\AppData\Local\Programs\Python\Python39 创建进程\Scripts\pip.exe" install requests': 系统找不到指定的文件。
I am running Python 3.8 so I'm not sure why pip is looking for Python 3.9.我正在运行 Python 3.8,所以我不确定为什么 pip 正在寻找 Python 3.9。
Remove消除
"c:\users\xxxx\appdata\local\programs\python\python39\python.exe"
"C:\Users\xxxx\AppData\Local\Programs\Python\Python39\Scripts\pip.exe"
from PATH, and add从PATH,并添加
"c:\users\xxxx\appdata\local\programs\python\python38\python.exe"
"C:\Users\xxxx\AppData\Local\Programs\Python\Python38\Scripts\pip.exe"
instead.反而。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.