【发布时间】:2014-12-04 10:19:24
【问题描述】:
我没有 root 访问权限,我想从头开始安装 python。所以我下载了python源代码并编译了它。接下来我想安装pip。但是当我运行python get-pip.py 时,我得到了这个错误:
ImportError: cannot import name HTTPSHandler
没有 root 访问权限,所以我无法安装所需的东西。所以我想也许我可以用easy_install 安装pip,所以我去安装了setuptools,它有easy_install。但是当我运行 easy_install pip 时,我得到了这个错误:
Searching for pip
Reading https://pypi.python.org/simple/pip/
Download error on https://pypi.python.org/simple/pip/: unknown url type: https -- Some packages may not be found!
Couldn't find index page for 'pip' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: unknown url type: https -- Some packages may not be found!
No local packages or download links found for pip
error: Could not find suitable distribution for Requirement.parse('pip')
那么现在如何安装pip?我真的要疯了!
编辑:我不能使用virutalenv
【问题讨论】:
-
为什么不能使用 virtualenv
-
查看这篇文章.. *.com/questions/19926683/…
标签: python pip easy-install