运行pip从vista上的powershell内部安装python包

时间:2012-10-02 21:10:12

标签: windows powershell install virtualenv pip

我试图遵循这个非常好的指南 http://www.tylerbutler.com/2012/05/28/how-to-install-python-pip-and-virtualenv-on-windows-with-powershell/

但是在尝试安装virtualenv时出现以下错误

PS C:\> pip install virtualenv
The term 'pip' is not recognized as the name of a cmdlet, function, script file
, or operable program. Check the spelling of the name, or if a path was include
d, verify that the path is correct and try again.
At line:1 char:4
+ pip <<<<  install virtualenv
    + CategoryInfo          : ObjectNotFound: (pip:String) [], CommandNotFound
    Exception
    + FullyQualifiedErrorId : CommandNotFoundException

我是mac用户,所以我理解如何使用pip,不知道为什么这不起作用。对PowerShell不太好。

1 个答案:

答案 0 :(得分:6)

好吧,通过电子邮件发送文章的作者,他指出c:\ Python27 \ Scripts需要在路径/ PS $ env:pip的路径被拾取。

一旦那个排序,它就会安装得很好。