首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >使用easy_install安装pip

使用easy_install安装pip
EN

Stack Overflow用户
提问于 2014-10-09 21:06:14
回答 4查看 74.5K关注 0票数 27

我没有root访问权限,我想从头开始安装python。所以我下载了python源代码并进行了编译。接下来,我想安装pip。但是当我运行python get-pip.py时,我得到了这个错误:

ImportError: cannot import name HTTPSHandler

如果没有root访问权限,我就无法安装所需的内容。所以我想也许我可以用easy_install安装pip,所以我去安装了setuptools,它有easy_install。但是当我运行easy_install pip时,我得到了这个错误:

代码语言:javascript
运行
复制
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

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26279207

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档