Ubuntu Linux 手工编译 Python3 踩坑
Mar 12, 2019 23:00 · 144 words · 1 minute read
有时候我们需要更新版本的 Python,而 Ubuntu 的包管理工具一般不会提供最新版本。
那就需要自己从官网下载源码来手工编译,正常都只要这么走一遍标准流程:
./configure
make
make test
make install
但是往往会因为 Linux 系统未安装某些库导致某些 Python 标准库编译失败而无法使用,比如 ctypes、ssl。。。
$ sudo apt-get install libffi-dev libssl
然后重新编译安装。。。