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

byt*_*kie 2 windows powershell install pip virtualenv

我试图按照这个非常好的指南 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
Run Code Online (Sandbox Code Playgroud)

我通常是一个mac用户,所以我知道如何使用pip,不知道为什么这不起作用.对PowerShell不太满意.

byt*_*kie 6

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

一旦那个排序,它会安装好.