linux python3安装

1 安装依赖环境

yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel

2 mkdir -p /usr/python3

3 cd usr/python3; tar -zxvf Python-3.8.3.tgz;cd Python-3.8.3

4 ./configure --prefix=/usr/python3

5 make

6 make install

7.建软连接

ln -s /usr/python3/bin/python3 /usr/bin/python3

ln -s /usr/python3/bin/pip3 /usr/bin/pip3

你可能感兴趣的:(linux python3安装)