簡體   English   中英

警告:pip 配置了需要 TLS/SSL 的位置,但是 Python 中的 ssl 模塊不可用。 [Ubuntu 22.04]

[英]WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. [Ubuntu 22.04]

我正在運行 Ubuntu 22.04 並安裝了 pyenv 2.3.11,並且可以在其上成功啟動 Python 3.8.13 版本。 但是,每當我嘗試運行

pip install poetry

我收到以下錯誤

 WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. 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/poetry/ 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/poetry/ 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/poetry/ ^CERROR: Operation cancelled by user WARNING: 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/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

我在最后一次運行時取消了它,但這是我使用的 output 的縮短版本。 我嘗試 pip 安裝的任何模塊也有同樣的問題

我已經嘗試了所有其他 stackoverflow 線程的建議,我可以找到相同的錯誤,它們包括:重新安裝 pip,重新安裝 python,重新安裝 openssl,我已經安裝了很多其他軟件包來嘗試解決這個問題,但是徒勞無功。 我很感激任何幫助,因為我沒有想法並且找不到任何其他建議,謝謝!

找到答案 - 必須更正我使用的箭頭文件的問題

暫無
暫無

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

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