Python中的ssl模块不可用

Python中的ssl模块不可用,python,Python,我正在尝试在以下计算机上安装带有一些python lib(pyqt5,lxml)的Python3: $ uname -a Linux devel_server 4.11.0-22.el7a.aarch64 #1 SMP Sun Sep 3 13:39:10 CDT 2017 aarch64 aarch64 aarch64 GNU/Linux $ cat /etc/*-release CentOS Linux release 7.4.1708 (AltArch) NAME="Cent

我正在尝试在以下计算机上安装带有一些python lib(pyqt5,lxml)的Python3:

$ uname -a    
Linux devel_server 4.11.0-22.el7a.aarch64 #1 SMP Sun Sep 3 13:39:10 CDT 2017 aarch64 aarch64 aarch64 GNU/Linux
$ cat  /etc/*-release 
CentOS Linux release 7.4.1708 (AltArch) 
NAME="CentOS Linux"
VERSION="7 (AltArch)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (AltArch)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
SIG_FAMILY="AltArch aarch64"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.4.1708 (AltArch) 
CentOS Linux release 7.4.1708 (AltArch) 
使用以下脚本:

#!/bin/bash

PYTHON_VERSION=3.6.5

sudo yum install openssl-devel
sudo yum install zlib-devel
cd /tmp/
wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz
tar -xzvf Python-${PYTHON_VERSION}.tgz
cd Python-${PYTHON_VERSION}
./configure
make
sudo make install
pip3 install pyqt5
pip3 install lxml
cd -
一切进展顺利,直到实际安装python库:
pip3安装pyqt5
。 它失败,输出如下:

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting pyqt5
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pyqt5/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pyqt5/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pyqt5/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pyqt5/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/pyqt5/
  Could not fetch URL https://pypi.python.org/simple/pyqt5/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /simple/pyqt5/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)) - skipping
  Could not find a version that satisfies the requirement pyqt5 (from versions: )
No matching distribution found for pyqt5
即使安装了openssl(请参见上文
sudo-yum-install-openssl-devel

我试图通过SO寻找答案,并找到了答案,但第二个答案(与我相关)表明我已经安装了什么


我遗漏了什么?

从2018年12月23日起,最新的Anaconda似乎与Win10秋季更新内幕版不兼容。必须返回到Anaconda 4.4.x才能使其正常工作。

可能相关:对不起,我不明白为什么相关……这可能有帮助: