1、源码包下载

wget https://www.python.org/ftp/python/3.4.5/Python-3.4.5.tar.xz

2、相关依赖

yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make
3、解压
xz –d Python 3.4.5.tar.xz
tar –xzvf Python 3.4.5.tar
cd Python 3.4.5./configure –prefix=/usr/local/python3
make && make install
之前安装过python2的版本添加软链
ln -s /usr/local/python3/bin/python3 /usr/bin/python3

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-11-19
  • 2021-11-29
  • 2022-01-01
猜你喜欢
  • 2021-11-28
  • 2021-06-04
  • 2022-03-07
  • 2021-09-14
相关资源
相似解决方案