Python-3.6.1下载
wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz
解压、编译、安装
tar Jxvf Python-3.6.1.tar.xz cd Python-3.6.1 ./configure --prefix=/usr/local/python3 make && make install
最终显示下面代码表示python3.6.1安装成功
Collecting setuptools Collecting pip Installing collected packages: setuptools, pip Successfully installed pip-9.0.1 setuptools-28.8.0
如果提示同时成功安装pip-9.0.1与setuptools!
那么就可以做软链接了,如下:
ln -s /usr/local/python3/bin/python3.6 /usr/local/bin/python3
查看pip版本:
pip --version pip 8.1.2
升级pip到最新版本:
pip install --upgrade pip
pip --version
pip 9.0.1
时间: 2024-12-11 07:09:10