简体   繁体   English

来自Windows 10上的Python的Pip.exe

[英]Pip.exe from Python on Windows 10

I installed the latest version of Python from www.python.org. 我从www.python.org安装了最新版本的Python。 Python 3.4.3. Python 3.4.3。 I then go to run pip and I get 然后,我去运行pip,我得到了

"Fatal error in launcher: Job information querying failed" “启动程序中出现致命错误:作业信息查询失败”

Searching for this error message points me to similar issues running Python under wine. 搜索此错误消息指出我在wine下运行Python的类似问题。 If you grab a pre-compiled pip.exe it will work but it seems that when you install, the pip.exe is generated as part of the installer and this pip.exe does not work. 如果您获取预编译的pip.exe它将工作,但似乎在您安装时,pip.exe是作为安装程序的一部分生成的,并且此pip.exe不起作用。

Further I am dealing with a build script that creates a virtual python environment that uses pip.exe and results in the same error. 此外,我正在处理一个构建脚本,该脚本创建一个使用pip.exe的虚拟python环境并导致相同的错误。 Not sure how to fix this. 不知道如何解决这个问题。 Also not sure how pip.exe is generated. 还不确定如何生成pip.exe。

您可以使用python -m pip install package

Worked for me in windows 10, make sure that you have added python in path of system environment variable. 在Windows 10中为我工作,确保在系统环境变量的路径中添加了python。 If you are able to run python from powershell then it means python is added to your path. 如果你能够从powershell运行python,那么就意味着python被添加到你的路径中。 After that you may try using following to upgrade pip 之后,您可以尝试使用以下升级点

python -m pip install -U pip

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

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