1、安装编译环境所需包

       #yum install zlib-devel bzip2-devel openssl-devel ncurese-devel gcc zlib

centos6.4下安装python3.6.1

安装成功

centos6.4下安装python3.6.1

 

2.下载源码包

  #wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz

3.安装
  解压源码包进入到解压完的python源码包目录下
  #tar zxvf Python-3.6.1.tgz
  #cd Python-3.6.1

4.编译安装
  #./configure --prefix=/usr/local/python3

  #make

centos6.4下安装python3.6.1

 

  #make install

centos6.4下安装python3.6.1

centos6.4下安装python3.6.1

5.添加环境变量

  #vim /etc/profile

  添加 export PATH="$PATH:/usr/local/python3/bin"

centos6.4下安装python3.6.1

重启一下,就可以使用了

centos6.4下安装python3.6.1


centos6.4下安装python3.6.1 - xiaodangshan - 博客园
https://www.cnblogs.com/xiaodangshan/p/7197563.html

相关文章:

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