question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

Trying to use Python 3.6 on Ubuntu 16.04:

Execute installation script
##[debug]Check if Python hostedtoolcache folder exist...
##[debug]Deleting Python 3.6.10
##[debug]Create Python 3.6.10 folder
##[debug]Copy Python binaries to hostedtoolcache folder
##[debug]Create additional symlinks (Required for UsePythonVersion VSTS task)
##[debug]Upgrading PIP...
##[debug]Looking in links: /tmp/tmp5xjr9lqz
##[debug]Requirement already satisfied: setuptools in /opt/hostedtoolcache/Python/3.6.10/x64/lib/python3.6/site-packages (40.6.2)
##[debug]Requirement already satisfied: pip in /opt/hostedtoolcache/Python/3.6.10/x64/lib/python3.6/site-packages (18.1)
##[debug]Collecting pip
##[debug]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
##[debug]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
##[error]The process '/bin/bash' failed with exit code 1
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Set up Python

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:41 (4 by maintainers)

github_iconTop GitHub Comments

37reactions
chasayscommented, Oct 26, 2020

resolved.

  1. first install openssl, please refer to this page
  2. install python and ./configure --with-openssl=/home/username/openssl
  3. at last, run python3 -m ssl and nothing outputs, it’s ok.
7reactions
arpanbaruahcommented, Jul 22, 2021

If any body still facing issue Follow these steps install openssl with /home/username

set export PATH=$HOME/openssl/bin:$PATH export LD_LIBRARY_PATH=/home/username/openssl/lib export LC_ALL=“en_US.UTF-8” export LDFLAGS=“-L/home/username/openssl/lib -Wl,-rpath,/home/username/openssl/lib” export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/username/openssl/lib/

execute in Python folder ./configure -prefix=/home/username/Python38/ --with-openssl=/home/username/openssl make make install python3 -m ssl

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip is configured with locations that require TLS/SSL, however ...
I got into this problem using Ubuntu, pyenv and Python 3.8.1 managed by pyenv. There was actually no ...
Read more >
pip3.10.4 is configured with locations that require TLS/SSL ...
Issue 47201 : pip3. 10.4 is configured with locations that require TLS/SSL, however the ssl module in Python is not available - Python...
Read more >
SSL module in Python is not available | unable to ... - YouTube
WARNING: pip is configured with locations that require TLS / SSL, however the ssl module in Python is not available Stay tuned and...
Read more >
WARNING: pip is configured with locations that require TLS ...
I'm using Kali Linux 2020.1, I installed Python3. 7, then after trying to install modules using pip3 command I keep getting this error...
Read more >
pip is configured with locations that require TLS/SSL ... - IBM
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available · Problem. When you are trying...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found