簡體   English   中英

Python 在 Ubuntu 22.04 上找不到 libssl

[英]libssl not found by Python on Ubuntu 22.04

正如標題所說,我剛剛升級到 Ubuntu 22.04 LTS,我之前的工作設置現在ImportError: libssl.so.1.1: cannot open shared object file: No such file or directory when started Jupyter, and equivalent throws Could not fetch URL https://pypi.org/simple/jupyter/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/jupyter/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping嘗試使用pip時跳過。

Libssl 實際上在/usr/lib/x86_64-linux-gnu/libssl.so.1.1可用。 我可以更改 LD_LIBRARY_PATH 但這似乎是一種解決方法。

我通過重新安裝環境解決了這個問題。

我使用pipenvpyenv 我使用pyenv刪除了pipenv環境和 Python 版本。 然后重新安裝了兩個。

暫無
暫無

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

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