ubuntu 安装python 参考链接https://blog.csdn.net/qq_29837161/article/details/83616364
- 官网下载python source code
- tar xfz Python-3.6.1.tgz
- cd Python-3.6.1/
- ./configure --prefix=/usr/bin/python3.6
- sudo make
- sudo make install
- rm /usr/bin/python
- ln -s /usr/bin/python3.6/bin/python3.6 /usr/bin/python
安装pip
- 删除现在的软连接 rm /usr/bin/pip3
- 找到python安装目录下bin文件里面的pip
- 新建软连接 ln -s /opt/ptyhon3.6/bin/pip3 /usr/bin/pip3.6