python3.9安装

https://www.python.org/
down:
https://www.python.org/downloads/source/

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

https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz

安装目录到
/usr/local/

1
2
3
4
5
6
7
mkdir -p /usr/local/python3.9
mv Python-3.9.6.tgz /tmp
tar -zxvf Python-3.9.6.tgz
cd Python-3.9.6
./configure --prefix=/usr/local/python3.9
make && make install
/usr/local/python3.9/bin/python3.9

vi /etc/profile

1
2
export PYTHON_HOME=/usr/local/python3.9
export PATH=${PYTHON_HOME}/bin:$PATH
1
source /etc/profile

https://www.jetbrains.com/zh-cn/pycharm/whatsnew/