想装一个最新版本的Python3,发现只能自己编译。于是
su
apt-get install build-essential libncurses5-dev libncursesw5-dev libreadline-dev libdb5.3-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev ca-certificates libffi-dev -y
wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
tar xvzf Python-3.7.3.tgz
cd Python-3.7.3
./configure
make & make install
主要过程参考自:https://blog.csdn.net/kyotrue/article/details/78904342
期间有两个软件包名字变了,而且出现以下问题:No module named '_ctypes'
解决方法参考:https://stackoverflow.com/questions/27022373/python3-importerror-no-module-named-ctypes-when-using-value-from-module-mul