`

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

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics