首页 > 解决方案 > 找不到满足要求的版本,错误python

问题描述

我正在尝试安装reverse_geocoder模块,但我不断收到以下错误

PS C:\Users\Raneem> pip install reverse_geocoder
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting reverse_geocoder
  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/reverse-geocoder/
  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/reverse-geocoder/
  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/reverse-geocoder/
  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/reverse-geocoder/
  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/reverse-geocoder/
  Could not fetch URL https://pypi.org/simple/reverse-geocoder/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/reverse-geocoder/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  Could not find a version that satisfies the requirement reverse_geocoder (from versions: )
No matching distribution found for reverse_geocoder

我应该怎么办?

标签: pythonssl

解决方案


尝试这个:

pip install --trusted-host pypi.python.org reverse_geocoder

推荐阅读