windows10安装imutils【已解决】

刺骨的言语ヽ痛彻心扉 2024-04-07 13:18 186阅读 0赞

文章目录

    • 场景
    • 异常
    • 终极解决

场景

win10,集成环境 anaconda3 -> python3

安装 pip install imutils

异常

在这里插入图片描述

  1. WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
  2. 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/imutils/
  3. 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/imutils/
  4. 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/imutils/
  5. 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/imutils/
  6. 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/imutils/
  7. Could not fetch URL https://pypi.org/simple/imutils/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/imutils/ (Caused by
  8. SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  9. ERROR: Could not find a version that satisfies the requirement imutils (from versions: none)
  10. ERROR: No matching distribution found for imutils
  11. WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
  12. 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

终极解决

打开 anaconda prompt,输入两行代码

在这里插入图片描述

第一行:

  1. conda install pip

在这里插入图片描述

第二行:

  1. pip install imutils

在这里插入图片描述

测试成功

在这里插入图片描述

发表评论

表情:
评论列表 (有 0 条评论,186人围观)

还没有评论,来说两句吧...

相关阅读