root@dwhitfield-centos6:/usr/src/Python-3.7.0# python3.7 get-pip.py Traceback (most recent call last): File "get-pip.py", line 20890, in <module> main() File "get-pip.py", line 197, in main bootstrap(tmpdir=tmpdir) File "get-pip.py", line 82, in bootstrap import pip._internal File "/tmp/tmp3i5zf_1_/pip.zip/pip/_internal/__init__.py", line 40, in <module> File "/tmp/tmp3i5zf_1_/pip.zip/pip/_internal/cli/autocompletion.py", line 8, in <module> File "/tmp/tmp3i5zf_1_/pip.zip/pip/_internal/cli/main_parser.py", line 12, in <module> File "/tmp/tmp3i5zf_1_/pip.zip/pip/_internal/commands/__init__.py", line 6, in <module> File "/tmp/tmp3i5zf_1_/pip.zip/pip/_internal/commands/completion.py", line 6, in <module> File "/tmp/tmp3i5zf_1_/pip.zip/pip/_internal/cli/base_command.py", line 18, in <module> File "/tmp/tmp3i5zf_1_/pip.zip/pip/_internal/download.py", line 38, in <module> File "/tmp/tmp3i5zf_1_/pip.zip/pip/_internal/utils/glibc.py", line 3, in <module> File "/usr/local/lib/python3.7/ctypes/__init__.py", line 7, in <module> from _ctypes import Union, Structure, Array ModuleNotFoundError: No module named '_ctypes'
I compiled openssl and set it to be the default version:
openssl version OpenSSL 1.1.0f 25 May 2017
Then, I recompiled Python.
However, I still get this: python3.7 -m pip install p4python pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting p4python 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/p4python/ 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/p4python/ 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/p4python/ 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/p4python/ 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/p4python/ Could not fetch URL https://pypi.org/simple/p4python/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/p4python/ (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 p4python (from versions: ) No matching distribution found for p4python pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. 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