2

我试图遵循这个很好的指南 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不太好。

4

1 回答 1

6

好的,给文章的作者发了电子邮件,他指出 c:\Python27\Scripts 需要在路径/PS $env:Path 上才能被拾取。

排序后,它会安装得很好。

于 2012-10-02T21:24:34.577 回答