[root@node02 ~]# yum -y install wget gcc zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel libffi-devel
[root@node02 ~]# wget https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
[root@node02 ~]# echo "LANG=zh_CN.UTF-8" >> /etc/profile
[root@node02 ~]# echo "LANGUAGE=zh_CN.UTF-8" >> /etc/profile
[root@node02 ~]# . /etc/profile
[root@node02 ~]# tar zxf Python-3.8.1.tgz -C /usr/src
[root@node02 ~]# cd /usr/src/Python-3.8.1/
[root@node02 Python-3.8.1]# ./configure --prefix=/usr/local/python38 --enable-optimizations && make && make install
[root@node02 Python-3.8.1]# echo "PATH=$PATH:/usr/local/python38/bin" >> /etc/profile
[root@node02 Python-3.8.1]# . /etc/profile
[root@node02 Python-3.8.1]# python3 --version
Python 3.8.1
———————— 本文至此结束,感谢阅读 ————————
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。