Python在Ubuntu上找不到的libssl 22.04

发布于 2025-01-26 05:28:26 字数 375 浏览 3 评论 0原文

正如标题所说,我刚刚升级到Ubuntu 22.04 LTS,我以前工作的设置现在说Importerror:libssl.so.1.1.1:无法打开共享对象文件:启动jupyter时否此类文件或目录> ,等效地抛出无法提取URL https://pypi.org/simple/jupyter/:确认SSL证书的问题存在问题:超过url:/simple/jupyter/(由sslerror引起(“无法连接到https url,因为SSL模块不可用。 >。

LIBSSL实际上可在/usr/lib/x86_64-linux-gnu/libssl.so.1.1上找到。我可以更改ld_library_path,但这似乎是解决方法。

As the title says, I've just upgraded to Ubuntu 22.04 LTS and my previously working setup now says ImportError: libssl.so.1.1: cannot open shared object file: No such file or directory when starting Jupyter, and equivalently 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 whenever trying to use pip.

Libssl is actually available at /usr/lib/x86_64-linux-gnu/libssl.so.1.1. I could change LD_LIBRARY_PATH but this seems to be a workaround.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

东北女汉子 2025-02-02 05:28:26

我通过重新安装环境解决了这个问题。

我使用pipenvpyenv。我使用pyenv删除了pipenv环境和Python版本。然后重新安装两者。

I resolved this problem by reinstalling the environment.

I use pipenv and pyenv. I removed the pipenv environment and the Python version using pyenv. Then reinstalled both.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文