linux下python使用easy_install_Could not find suitable distribution处理

 

 

背景:

centos下安装easy_intall后,使用下载 django报错,错误信息如下:

 

 

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 django

error: Could not find suitable distribution for Requirement.parse('django')

 

解决办法

 

1.yum install openssl-devel
2.重新编译安装python  (进入python安装好的目录,重新执行make后,在执行make install命令)
3.easy_install django

 

安装成功如下:

Installed /usr/local/python/lib/python2.7/site-packages/Django-1.6.5-py2.7.egg
Processing dependencies for django
Finished processing dependencies for django

 

 

Complete output from command python setup.py egg_info: Couldn't find index page for 'pbr' (maybe misspelled?) No local packages or download links found for pbr Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-cZ8DNR/virtualenvwrapper/setup.py", line 7, in <module> pbr=True, File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup _setup_distribution = dist = klass(attrs) File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 265, in __init__ self.fetch_build_eggs(attrs.pop('setup_requires')) File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 289, in fetch_build_eggs parse_requirements(requires), installer=self.fetch_build_egg File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 618, in resolve dist = best[req.key] = env.best_match(req, self, installer) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 862, in best_match return self.obtain(req, installer) # try and download/install File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 874, in obtain return installer(requirement) File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 339, in fetch_build_egg return cmd.easy_install(req) File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 617, in easy_install raise DistutilsError(msg) distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pbr') ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-cZ8DNR/virtualenvwrapper/ 出现了什么错误?该如何解决?
最新发布
07-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值