linux安装python
1、下载python
https://www.python.org/downloads/source/
2、新建文件夹
sudo mkdir /usr/local/python3
3、将python包上传到任意文件夹并解压
tar -zvxf Python-3.8.0.tgz
4、进入源码路径
cd Python-3.8.0/
5、安装1
./configure --prefix=/usr/local/python3
6、安装2
make && make install
7、备份原来的python
mv /usr/bin/python /usr/bin/python_bak
8、软连接
ln -s /usr/local/python3/bin/python3.8 /usr/bin/python
ln -s /usr/local/python3/bin/pip3.8 /usr/bin/pip
长风破浪会有时,直挂云帆济沧海!
可通过下方链接找到博主
https://www.cnblogs.com/judes/p/10875138.html