pip is configured with locations that require TLS/SSL, however the ssl module in Python is not avail

2066 ワード

会社を探して新しく1つのクラウドホストCentOS release 6.8を開いて、pip 3がライブラリをインストールする時報pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
python3 -m pip install markupsafe
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting markupsafe
  Could not fetch URL https://pypi.python.org/simple/markupsafe/: There was a problem confirming the ssl certificate: Can't connect to HTTPS URL because the SSL module is not available. - skipping
  Could not find a version that satisfies the requirement markupsafe (from versions: )
No matching distribution found for markupsafe
sudo yum install openssl-devel
ソースをbaseミラーでダウンロードします.
yum --enablerepo=base --enablerepo=updates install openssl-devel

./configure --enable-optimizations

make altinstall

その後pip 3のインストールに成功しました