centos下 安装python相关
centos 安装python相关
python3
https://blog.csdn.net/tanxiaob/article/details/78725301
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 wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz mkdir /usr/local/python3 tar -zxvf Python-3.6.3.tgz cd Python-3.6.3 ./configure --prefix=/usr/local/python3 make && make install ln -s /usr/local/python3/bin/python3 /usr/bin/python3 创建 python3 的软链接 ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3 创建 pip3 的软链接 最后命令行下输入pip3和python3 -V 验证一下是否都成功