首页 > 代码库 > Centos 安装 Python 3.6.1

Centos 安装 Python 3.6.1

1、下载Python 3.6.1

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

2、./configure

./configure --prefix=/usr/local/python3.6.1

3、make&makeinstall

4、创建虚拟环境

virtualenv -p /usr/bin/python3 py3env

5、激活虚拟环境

source ./bin/activate

6、FAQ

01、zipimport.zipimporterror can‘t decompress data zlib not available linux

安装zlib-devel

yum install zlib-devel

 

Centos 安装 Python 3.6.1