RHEL 7.2 ptyhong 3.6,python 2.7-SL模块不可用

问题描述

我正在使用Linux服务器。Red Hat Enterprise Linux Server版本7.2(Maipo)带有Python 2.7和必需的ssl软件包,并且运行良好。

现在我正在尝试安装Python 3.6,我尝试了以下步骤并安装了python 3.6和pip3.6,问题是pip3.6无法安装任何软件包,因为它引发了错误

Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org',port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)) - skipping

我过去制作python 3.6的步骤

tar xf Python-3.6.3.tar.xz
cd Python-3.6.3
./configure --prefix=/usr/local --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib"
make && make altinstall```

I tried to install openssl-devel with  yum install openssl-devel I got the below error 

Error: Package: openssl-devel-1.0.1e-57.el6.x86_64 (centos)
           Requires: openssl = 1.0.1e-57.el6
Error: Package: glibc-2.12-1.212.el6.i686 (centos)
           Requires: glibc-common = 2.12-1.212.el6
           Installed: glibc-common-2.17-105.el7.x86_64 (@anaconda/7.2)
               glibc-common = 2.17-105.el7
           Available: glibc-common-2.12-1.212.el6.x86_64 (centos)
               glibc-common = 2.12-1.212.el6

Anybody came through issues? Please suggest any fix. 

Thanks in advance.

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)