john doe
john doe

Reputation: 125

"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

Upvotes: 4

Views: 6008

Answers (1)

AzyCrw4282
AzyCrw4282

Reputation: 7754

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

Upvotes: 2

Related Questions