【问题标题】:Could not find a version that satisfies the requirement, error python找不到满足要求的版本,错误python
【发布时间】:2019-03-09 22:08:37
【问题描述】:

我正在尝试安装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

我该怎么办?

【问题讨论】:

    标签: python ssl


    【解决方案1】:

    试试这个:

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

    【讨论】:

      猜你喜欢
      • 2021-11-28
      • 1970-01-01
      • 1970-01-01
      • 2021-01-04
      • 2017-12-30
      • 2020-05-15
      • 2018-11-28
      • 2020-11-12
      • 2021-12-04
      相关资源
      最近更新 更多