CentOS安装Python3.7
vscode设置python3.7调试环境:https://www.cnblogs.com/dotnetcrazy/p/9095793.html
先下载一下压缩包(FTP传也一样):weget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz
目前最新:https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tar.xz
解压:tar -Jxvf Python-3.7.0.tar.xz
cd Python-3.7.0 设置一下配置文件,准备编译安装 ./configure prefix=/usr/local/python3
对于老手,缺啥安装啥,新手建议安装如下安装包(这样你不会出错)
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 kernel-devel libffi-devel
编译安装:make && make install(yum安装没有apt安装方便)
设置软链接:ln -s /usr/local/python3/bin/python3 /usr/bin/python3
作者:毒逆天
打赏:18i4JpL6g54yAPAefdtgqwRrZ43YJwAV5z