1.下载安装包
https://www.python.org/downloads/source/
Python-3.10.0.tgz
2.解压安装包
tar -xvf Python-3.10.0.tgz
3.进行配置
./configure --prefix=/usr/local/python3
4.编译安装
make && make install
5.建立链接
sudo ln -s /usr/local/python3/bin/python3.10 /usr/bin/python
默认没有pip命令,需要进行链接
sudo ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
sudo ln -s /usr/local/python3/bin/pip /usr/bin/pip
python --version 查看版本
标签:bin,安装,sudo,pythom3.10,usr,Linux,pip,local,python3 From: https://www.cnblogs.com/anye-S/p/17446332.html