python3_linux安装
python安装包地址
https://www.python.org/ftp/python/
如果没有c complie,就安装:
yum -y install gcc gcc-c++
在编译安装之前,要安装依赖,不然虽然大概也能装上,但后面很多问题。比如pip3无法使用ssl,启动django找不到sqlite3.
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel tk-devel
然后编译安装
./configure
make && make install