用easy_install時出現unknown url type: https问题
[root@localhost setuptools-1.0]# /usr/local/python27/bin/easy_install virtualenv
Searching for virtualenv
Download error on https://pypi.python.org/simple/virtualenv/: unknown url type: https – Some packages may not be found!
Couldn’t find index page for ‘virtualenv’ (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 virtualenv
error: Could not find suitable distribution for Requirement.parse(‘virtualenv’)
解决办法:
1.yum install openssl-devel #若出现无法安装安装,请查看另一篇《在构建Python3.6环境的docker镜像时遇到python-devel无法安装》
2.重新编译安装Python
3.测试easy_install virtualenv
此处就可以成功使用了