Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

python

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

like image 489
john doe Avatar asked Oct 31 '25 14:10

john doe


1 Answers

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

like image 118
AzyCrw4282 Avatar answered Nov 02 '25 05:11

AzyCrw4282