Jul-31-2019, 10:27 AM
Hi all.
I am working on an ubuntu 16.04 VM and have installed python3.7 from a package. I now have the following outputs when checking versions:
$ python --version
Python 2.7.12
$ python3 --version
Python 3.5.2
$ python3.7 --version
Python 3.7.4
Now I am trying to install packages using 'pip' - specifically the 'slackclient' package. I have successfully installed it using pip and pip3, but these packages doesn't correspond with python3.7, so trying pip3.7 gives me the following error:
$ pip3.7 install --user slackclient
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting slackclient
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/slackclient/
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/slackclient/
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/slackclient/
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/slackclient/
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/slackclient/
Could not fetch URL https://pypi.org/simple/slackclient/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/slackclient/ (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 slackclient (from versions: )
No matching distribution found for slackclient
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
I even tried running:
$ python3.7 -m pip install --user slackclient
to the save effect. What might be causing this and how do I resolve it?
I am working on an ubuntu 16.04 VM and have installed python3.7 from a package. I now have the following outputs when checking versions:
$ python --version
Python 2.7.12
$ python3 --version
Python 3.5.2
$ python3.7 --version
Python 3.7.4
Now I am trying to install packages using 'pip' - specifically the 'slackclient' package. I have successfully installed it using pip and pip3, but these packages doesn't correspond with python3.7, so trying pip3.7 gives me the following error:
$ pip3.7 install --user slackclient
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting slackclient
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/slackclient/
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/slackclient/
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/slackclient/
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/slackclient/
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/slackclient/
Could not fetch URL https://pypi.org/simple/slackclient/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/slackclient/ (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 slackclient (from versions: )
No matching distribution found for slackclient
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
I even tried running:
$ python3.7 -m pip install --user slackclient
to the save effect. What might be causing this and how do I resolve it?