#!/bin/bash 

yum -y install zlib-devel 
cd /usr/local/src
wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz 
tar xf Python-3.6.0.tgz
cd Python-3.6.0
./configure --prefix=/usr/local/python3 --with-ssl
make && make install

ln -s /usr/local/python3/bin/python3.6  /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3

  

相关文章:

  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
  • 2021-08-18
  • 2021-08-08
猜你喜欢
  • 2021-12-26
  • 2022-02-09
  • 2021-09-14
  • 2022-12-23
  • 2021-04-21
  • 2021-04-18
  • 2021-04-03
相关资源
相似解决方案