deepin/UOS安装python3.10.7

deepin的python3.10.7.zip - 蓝奏云

上面的是安装包解压到/opt  即可

首先是准备工作

sudo apt update
sudo apt upgrade

 接着安装必需的依赖

sudo apt install make build-essential libssl-dev zlib1g-dev
sudo apt install libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm
sudo apt install libncurses5-dev libncursesw5-dev xz-utils tk-dev

在解压出来的python3.10.7的文件目录右击在终端打开

sudo ./configure prefix=/usr/local/python3 --with-openssl=/usr  --with-http_ssl_module  --enable-optimizations

sudo make 
sudo make install

创建软连接(如果无法连接就把提示的那个文件删除即可)

sudo ln -s /usr/local/python3/bin/python3 /usr/bin/python3

安装Pip3

解压开头文件中的pip到/opt  即可

sudo python3 setup.py build
sudo python3 setup.py install

# 添加到软连接
sudo ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3

(如果无法连接就把提示的那个文件删除即可)

到此在deepin/UOS安装python3.10.7结束

你可能感兴趣的:(闲话统信UOS,linux,运维,python,deepin,UOS)