![](/img/trans.png)
[英]cythonize not found on Ubuntu 22.04 after "pip3 install cython"
[英]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 但這似乎是一種解決方法。
我通過重新安裝環境解決了這個問題。
我使用pipenv
和pyenv
。 我使用pyenv
刪除了pipenv
環境和 Python 版本。 然后重新安裝了兩個。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.