我没有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
https://stackoverflow.com/questions/26279207
复制相似问题