【问题标题】:running pip to install python packages from inside powershell on vista运行 pip 从 vista 上的 powershell 内部安装 python 包
【发布时间】:2012-10-02 21:10:11
【问题描述】:

我正在尝试遵循这个非常好的指南 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。

【问题讨论】:

    标签: windows powershell installation virtualenv pip


    【解决方案1】:

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

    排序完成后,它会正常安装。

    【讨论】:

      猜你喜欢
      • 2020-09-13
      • 2019-02-27
      • 2016-02-10
      • 2017-05-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-08-19
      相关资源
      最近更新 更多