centos8安装python3.8.0

  1. 下载并安装Python 3.8.0
  2. https://www.python.org/ftp/python/3.8.0/
  3. yum -y install gcc zlib* libffi-devel(安装过的跳过)
  4. 解压python得到python-3.8.0文件夹
  5. cd python-3.8.0
  6. mkdir /usr/local/bin/python3
  7. ./configure --prefix=/usr/local/bin/python3
  8. make && make install
  9. rm -rf /usr/bin/python3
  10. ln -s /usr/local/bin/python3/bin/python3 /usr/bin/python3
  11. python3 -V 查看升级后系统默认Python的版本号.

你可能感兴趣的:(centos8安装python3.8.0)