pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
MAC OS
I had the same problem on Mac OS(Mojave) and solved the problem as mentioned on this link - Openssl issue.
- If you do not have Homebrew or don't know what is Homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Or if you already have Homebrew installed:
brew update && brew upgradebrew uninstall --ignore-dependencies openssl; brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
Update:Keep in mind, that I had to use --ignore-dependencies
flag, because other packages installed that depend on OpenSSL.
Additional if the problem is caused after using pyenv, you can fix it by using:
brew reinstall python
For Debian users, the following may be of use:
sudo apt install libssl-devsudo apt install libncurses5-devsudo apt install libsqlite3-devsudo apt install libreadline-devsudo apt install libtk8.6sudo apt install libgdm-devsudo apt install libdb4o-cil-devsudo apt install libpcap-dev
Then cd to the folder with the Python 3.X library source code and run:
./configuremakemake install