我有一些在 Python 2.7.12 上运行的旧网站,并且刚刚将我的开发机器更新到 Ubuntu 20.04。
我试图让 PyEnv 安装 Python 2.7.12,但这似乎取决于已在 Ubuntu 20.04 中删除的 libssl1.0-dev。
我得到错误:
Installing Python-2.7.12...
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?
Please consult to the Wiki page to fix the problem.
https://github.com/pyenv/pyenv/wiki/Common-build-problems
BUILD FAILED (Ubuntu 20.04 using python-build 20180424)
以下建议here我跑:
sudo apt-get remove libssl-dev
sudo apt-get update
sudo apt-get install libssl1.0-dev
我得到错误:
E: Package 'libssl1.0-dev' has no installation candidate
有没有办法做到这一点?如果是,那怎么办?
谢谢你。
最佳答案
关于PyEnv 中 Ubuntu 20.04 上的 Python 2.7.12,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61612657/