Python在Ubuntu上找不到的libssl 22.04
正如标题所说,我刚刚升级到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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过重新安装环境解决了这个问题。
我使用
pipenv
和pyenv
。我使用pyenv
删除了pipenv
环境和Python版本。然后重新安装两者。I resolved this problem by reinstalling the environment.
I use
pipenv
andpyenv
. I removed thepipenv
environment and the Python version usingpyenv
. Then reinstalled both.