【问题标题】:How to install openpyxl in PyCharm as I am getting this error message当我收到此错误消息时,如何在 PyCharm 中安装 openpyxl
【发布时间】:2021-03-18 23:47:16
【问题描述】:

我正在尝试在终端中使用命令 pip install openpyxl 在 PyCharm 中安装 openpyxl,但出现以下错误:

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certifica
te in certificate chain (_ssl.c:1123)'))': /simple/openpyxl/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certifica
te in certificate chain (_ssl.c:1123)'))': /simple/openpyxl/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certifica
te in certificate chain (_ssl.c:1123)'))': /simple/openpyxl/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certifica
te in certificate chain (_ssl.c:1123)'))': /simple/openpyxl/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certifica
te in certificate chain (_ssl.c:1123)'))': /simple/openpyxl/
Could not fetch URL https://pypi.org/simple/openpyxl/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/openpyxl/ (Caused by SSLError(SSLCertVeri
ficationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123)'))) - skipping
ERROR: Could not find a version that satisfies the requirement openpyxl (from versions: none)
ERROR: No matching distribution found for openpyxl
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(SSLCertVerificationEr
ror(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123)'))) - skipping

【问题讨论】:

    标签: python pip pycharm openpyxl


    【解决方案1】:

    你可以试试这个

    1.打开PyCharm

    2.转到File -> settings -> Project:test(test means your project name) -> select project interpretor -> click add button

    3.点击添加按钮并搜索cryptography然后安装它。

    最后,运行程序。

    【讨论】:

      猜你喜欢
      • 2017-11-20
      • 1970-01-01
      • 2020-03-07
      • 1970-01-01
      • 2018-03-25
      • 2010-12-11
      • 2017-08-11
      • 1970-01-01
      • 2021-04-19
      相关资源
      最近更新 更多