yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make
tar -xzvf /opt/Python-3.6.4.tgz -C /usr/local/src/
cd /usr/local/src/Python-3.6.4./configure --prefix=/usr/local/python3
make && make install
cd /etc/profile.d/
vi python3.sh
export PATH="$PATH:/usr/local/python3/bin"
source ../profile
pytohn3
Recommended Posts