安装python最新版本

  |   0 评论   |   0 浏览

安装2.7.5

安装用到软件:

 yum install -y libffi-devel openssl-dev

编译安装:

 wget https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
 tar zxf Python-2.7.15.tgz
 cd Python-2.7.15
 ./configure --prefix=/data/solution/python2.7
 make -j `cat /proc/cpuinfo| grep "processor"| wc -l` && make install

安装python3.X系列

安装用到软件:

 yum install -y libffi-devel openssl-dev

编译安装:

  wget https://www.python.org/ftp/python/3.7.5/Python-3.7.5.tgz
  tar zxf Python-3.7.5.tgz
  cd Python-3.7.5
  ./configure --enable-optimizations
  make -j `cat /proc/cpuinfo| grep "processor"| wc -l` && make install

标题:安装python最新版本
作者:SmiteLi
地址:https://smite.site/articles/2019/10/18/1571378403620.html