简体   繁体   中英

"pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available." Despite running as trusted host

I know there's several other people asking the same thing but neither works for me. I'm on MacOS and I'm getting "pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available." The solution everywhere is to run it as a trusted package:

pip install --trusted-host pypi.org \
          --trusted-host files.pythonhosted.org \
          requests

I am getting the same error though. Is it possible to ignore ssl?

Thanks

Try to upgrade pip library using the below command.

sudo pip install --upgrade

Then after use below command to install SSL module of python3.x

sudo pip install ssl

If the error still persists then try the solution here

openssl version maybe too low.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM