How to install Python3

 


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

 


安装相关依赖包:

sudo
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make

解压,进入解压目录,执行下面的命令:
.
/configure prefix=/usr/local/python3 --enable-optimizations make -j4

sudo make install

 

posted @ 2020-05-20 09:25  He_LiangLiang  阅读(211)  评论(0编辑  收藏  举报