标签:安装 openssl 语言 $path gcc linux bzip2 dev ftp
1、安装所需依赖[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
———————— 本文至此结束,感谢阅读 ————————
标签:安装 openssl 语言 $path gcc linux bzip2 dev ftp
原文地址:https://blog.51cto.com/14154700/2462517