我正在努力在Vmware上使用pip安装Django。我已经尝试了几乎所有可用的选项。
命令:
[root@ora12c src]# pip3.6 install django
输出:
[root@ora12c src]# pip3.6 install django
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting django
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/django/
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/django/
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/django/
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/django/
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/django/
Could not fetch URL https://pypi.python.org/simple/django/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /simple/django/ (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 django (from versions: )
No matching distribution found for django
pip版本:
[root@ora12c src]# pip3.6 -V
pip 9.0.3 from /usr/local/lib/python3.6/site-packages (python 3.6)
Python版本:
[root@ora12c src]# python3.6 -V
Python 3.6.5
我还下载了openssl文件,但无济于事
wget https://www.openssl.org/source/openssl-1.1.1-pre7.tar.gz