-
Python 文件链接
https://www.python.org/ftp/python -
下载
wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tar.xz -
解压
tar xf Python-3.6.3.tar.xz -C /usr/local/src/ -
安装
cd /usr/local/src/Python-3.6.3
./configure --prefix=/usr/local/python3
make && make install -
检查pip
/usr/local/python3/bin/pip3 install --upgrade pip
/usr/local/python3/bin/pip3 list -
创建软连接
ln -s /usr/local/python3/bin/python3.6 /usr/bin/python3 -
检查
python3 -v
网友评论