【问题标题】:PIP Failed to create processPIP 创建进程失败
【发布时间】:2017-04-24 01:32:20
【问题描述】:

Python 2.7 版
在 Windows 10 64 位上

pip install <whatever> 

命令不起作用。

C:\new_software\Python27\Scripts>python -m ensurepip
Requirement already satisfied: setuptools in c:\new_software\python27\lib\site-packages\setuptools-28.8.0-py2.7.egg
Requirement already satisfied: pip in c:\new_software\python27\lib\site-packages\pip-9.0.1-py2.7.egg

C:\new_software\Python27\Scripts>python -m ensurepip --upgrade
Requirement already up-to-date: setuptools in c:\new_software\python27\lib\site-packages\setuptools-28.8.0-py2.7.egg
Requirement already up-to-date: pip in c:\new_software\python27\lib\site-packages\pip-9.0.1-py2.7.egg

C:\new_software\Python27\Scripts>pip install wheel
failed to create process.

C:\new_software\Python27\Scripts>python -m install pip install pip
C:\new_software\Python27\python.exe: No module named install

我有 python 3.x 和 2.7;在 3.x 中 pip 工作正常;仅在 2.7 中没有。

根据网上阅读文章:我已完成:

1.环境变量设置。
2.python VC++安装

【问题讨论】:

  • 最新的 Python 2.7 自带 pip。再次运行安装程序,您将看到选择它的选项
  • 最后一个命令python -m install pip install pip应该是python -m pip install pip
  • 您的意思是运行python -m pip install -U pip 吗? python -m install 不正确
  • 感谢大家的回复。我阅读了@cricket_007 分享的链接。解决方案:使用 Python Home 的当前路径更新 /Scripts 文件夹中的所有 .py 文件 [firstline]。您会注意到它将指向一个较旧的位置。然后尝试从新的 CMD 提示符运行 pip 命令,应该可以正常工作。

标签: python python-2.7 pip


【解决方案1】:

感谢大家的回复。 我阅读了@cricket_007 分享的链接解决方案: 使用 Python Home 的当前路径更新 /Scripts 文件夹中的所有 .py 文件 [firstline]。您会注意到它将指向一个较旧的位置。 然后尝试在新的 CMD 提示符下运行 pip 命令,应该可以正常工作。

【讨论】:

    猜你喜欢
    • 2013-06-26
    • 2015-10-26
    • 1970-01-01
    • 1970-01-01
    • 2021-09-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多