我尝试按照 this answer 中的说明进行操作但是 easy_install-2.6
找不到 pip
:
>sudo easy_install-2.6 pip
Processing pip
error: Not a recognized archive type: pip
如何为 python 2.6 安装 pip?
我对 2.6 的 pip 的根本需求在 this thread 中进行了解释。 .
最佳答案
只需按照说明 here :
- 安全下载
get-pip.py
(这是特定于 2.6 的文件,链接来自 Ricardo Iramar 的 answer)。 在你保存的目录下
get-pip.py
,运行sudo python2.6 get-pip.py
你就准备好了。
这将为 Python 2.6 安装 pip
,并且不会影响您的 2.7 版安装。
关于python - 如何为 python 2.6 安装 pip?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24294467/