How to install python3.x on centos7.x

来自linux中国网wiki
跳到导航 跳到搜索
#abord  小写的o字母

 yum install -y  zlib-devel
curl  -o py.tgz  https://www.python.org/ftp/python/3.7.7/Python-3.7.7.tgz
  tar xvf py.tgz && cd Python-3.7.7/
./configure --prefix=/usr/local/python3
make -j4  && make install
ln -s  /usr/local/python3/bin/python3  /usr/bin/python3

How to install python2.7 on centos6.x