簡體   English   中英

在 WIndows 10 上的 Pycharm 中安裝 Openpyxl package 時出現 TLS/SSL 錯誤

[英]TLS/SSL error while installing Openpyxl package in Pycharm on WIndows 10

嘗試通過復制粘貼此代碼“pip install openpyxl”在 Pycharm 的終端中從 pypi.org 安裝 openpyxl

收到此錯誤

pip 配置有需要 TLS/SSL 的位置。 但是 Python 中的 ssl 模塊不可用。 Collecting openpyxl 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/openpyxl/ 重試 (Retry(total=3, connect=None, read=None, redirect=None, status=None)) 連接被 'SSLError("Can't connect to HTTPS ZE6B391A8D2C4D45902A23A8B6585703 becauseD 'SSLError("Can 't connect to HTTPS URL because the SSL module is not available.")': /simple/openpyxl/ Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after c onnection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/openpyxl/ 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/openpyxl/ Could not fetch URL https://pypi.org/ simple/openpyxl/ :確認 ssl 證書時出現問題:HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/openpyxl/到 HTTPS URL 因為 SSL 模塊 is not available.")) - skipping Could not find a version that satisfies the requirement openpyxl (from versions: ) No matching distribution found for openpyxl 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/(由 SSLError 引起(“無法連接到 HTTPS URL,因為 SSL 模塊不可用)-跳過。”)

我更新了 Pycharm。 安裝 OpenSSL。

嘗試在設置 > python 解釋器 > + 符號 > 管理呼吸器中更改 URL,但找不到“管理呼吸器”選項。

我應該怎么辦? TIA

我遇到了類似的問題,以下技巧奏效了。

首先激活您的基本 conda 環境。 之后激活項目的 python 環境。 然后 go 提前並使用 pip 安裝命令安裝 openpyxl。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM