简体   繁体   English

无法使用pip安装python软件包

[英]unable to use pip for installing python packages

I have just installed python 3.4, including pip, on a win64 machine. 我刚刚在win64机器上安装了python 3.4,包括pip。
When trying to use pip to install a package, I encounter a strange error. 尝试使用pip安装软件包时,遇到一个奇怪的错误。
I'm running: 我在跑:

pip install packagename  

and get: 并得到:

 Can't locate pip.pm in @INC...   

This looks like a perl error to me. 在我看来,这似乎是一个perl错误。 I do have perl installed on my machine, but why is windows trying to invoke perl? 我的机器上确实安装了perl,但是为什么Windows试图调用perl?
Waiting for your advice, 等待您的建议,
Thanks! 谢谢!

I think you have installed pip perl module , and it added the pip perl tool in your PATH variable (in upper place than pip from python). 我认为您已经安装了pip perl模块 ,并且在PATH变量中添加了pip perl工具(比python中的pip更高)。 So, if you don't use that perl module, you can delete it, or call the python pip tool with the complete path 因此,如果您不使用该perl模块,则可以将其删除,或使用完整路径调用python pip工具

OK, so what did it for me was changing the name of the pip file found somewhere on my drive to pip_pm. 好的,所以对我来说,是将在驱动器某处找到的pip文件的名称更改为pip_pm。 This convinced windows to just use the python pip command. 这说服了Windows仅使用python pip命令。 Thanks for your help anyway. 还是要谢谢你的帮助。

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

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