标签:http configure prefix bin 解压 evel 服务 python3 ssl
安装新的Python3与系统自带的Python2共存yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make
wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz
可以使用迅雷下载再传到服务器上
mkdir /usr/local/python3
tar -xvJf Python-3.6.2.tar.xz
cd Python-3.6.2
./configure --prefix=/usr/local/python3
make && make install
至此Python3和pip3已经安装好
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
此时使用python3命令就是执行python3,使用python命令就是执行自带的python2,pip亦然
标签:http configure prefix bin 解压 evel 服务 python3 ssl
原文地址:http://blog.51cto.com/dzm911/2155606