Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fashionwill opened this issue Jun 20, 2020 · 1 comment
Labels
resolution: duplicate Duplicate of an existing issue/PR type: support User Support

Comments

@fashionwill
Copy link

fashionwill commented Jun 20, 2020

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting Scrapy
  WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/scrapy/
  WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/scrapy/
  WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/scrapy/
  WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/scrapy/
  WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/scrapy/
  Could not fetch URL https://pypi.org/simple/scrapy/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/scrapy/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  ERROR: Could not find a version that satisfies the requirement Scrapy (from versions: none)
ERROR: No matching distribution found for Scrapy
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
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

root@03eeeec081b1:~# python --version
Python 3.8.3

root@03eeeec081b1:~# pip -V  
pip 19.2.3 from /usr/local/python3.8.3/lib/python3.8/site-packages/pip (python 3.8)

root@03eeeec081b1:~# 

Can anyone tell me how I need to solve this problem? Thank you

@ghost ghost added the S: needs triage Issues/PRs that need to be triaged label Jun 20, 2020
@uranusjr
Copy link
Member

uranusjr commented Jun 20, 2020

See pypa/virtualenv#1139. The Python installation is configured/compiled without the SSL module. You need to recompile or reinstall it from scratch.

(Edit: wrong issue link)

@uranusjr uranusjr added the type: support User Support label Jun 20, 2020
@ghost ghost removed the S: needs triage Issues/PRs that need to be triaged label Jun 20, 2020
@uranusjr uranusjr added the resolution: duplicate Duplicate of an existing issue/PR label Jun 20, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: duplicate Duplicate of an existing issue/PR type: support User Support
Projects
None yet
Development

No branches or pull requests

2 participants