首页 > 代码库 > python编译安装

python编译安装

在LINUX Centos 7.1安装Python 3.5.2

操作步聚如下:

1) 设置语言环境

  export LANG=en_GB.utf8

2)安装DEVTOOLSET

yum groupinstall "Development tools"

 3) 安装依赖包

yum install zlib-devel
yum install bzip2-devel
yum install openssl-devel
yum install ncurses
yum install sqlite-devel

4)解压 PYTHON的包

tar -zxvf Python-3.5.2.tgz

5)编译与安装PYTHON

./configure --prefix=/usr/local

make && make inastall

6)将PYTHON命令指向PYTHON 3.52

ln -s /usr/local/bin/python3.5.2 /usr/local/bin/python


本文出自 “12024114” 博客,请务必保留此出处http://12034114.blog.51cto.com/12024114/1879188

python编译安装