简体   繁体   English

Windows 10 上的 PIP 和路径问题

[英]PIP and path issue on Windows 10

So common error with several possible causes.如此常见的错误有几种可能的原因。 Running跑步

 pip install requests

results in the following error导致以下错误

Fatal error in launcher: Unable to create process using '"c:\\users\\foo\\appdata\\local\\programs\\python\\python36\\python.exe" "C:\\Users\\foo\\AppData\\Local\\Programs\\Python\\Python36\\Scripts\\pip.exe"启动器中的致命错误:无法使用 '"c:\\users\\foo\\appdata\\local\\programs\\python\\python36\\python.exe" "C:\\Users\\foo\\AppData\\Local\\Programs\\Python\\Python36 创建进程\\脚本\\pip.exe”

I've just installed Python 3.77 on Windows 10 to this location (after removing previous versions)我刚刚在 Windows 10 上将 Python 3.77 安装到这个位置(删除以前的版本后)

c:\\python37\\ c:\\python37\\

After searching here Fatal error in launcher: Unable to create process using ""C:\\Program Files (x86)\\Python33\\python.exe" "C:\\Program Files (x86)\\Python33\\pip.exe""在此处搜索启动器中的致命错误:无法使用“C:\\Program Files (x86)\\Python33\\python.exe”“C:\\Program Files (x86)\\Python33\\pip.exe”创建进程

Pip - Fatal error in launcher: Unable to create process using '"' Pip - 启动器中的致命错误:无法使用 '"' 创建进程

I tried using我尝试使用

python -m pip install --upgrade pip 

which results in这导致

Requirement already up-to-date: pip in c:\\python37\\lib\\site-packages (20.0.2)要求已经是最新的:c:\\python37\\lib\\site-packages 中的 pip (20.0.2)

And thinking it is a pathing issue I tried the following command but no difference并认为这是一个路径问题我尝试了以下命令但没有区别

setx PATH "%PATH%;C:\\python37\\lib\\site-packages" setx PATH "%PATH%;C:\\python37\\lib\\site-packages"

What should I try next?我接下来应该尝试什么?

to make it easier.. uninstall python 3.7 and reinstall.. when installing do custom and all users.. it will prompt for should add Python to Path..为了使它更容易..卸载python 3.7并重新安装..安装时做自定义和所有用户..它会提示应该将Python添加到路径..

You can also try future installations with Package Managers like Chocolatey.您还可以尝试使用诸如 Chocolatey 之类的包管理器进行将来的安装。 Its like apt-get / YUM / Brew for windows.它就像适用于 Windows 的 apt-get / YUM / Brew。 chocolatey.org/install Chocolatey.org/安装

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM