码迷,mamicode.com
首页 > 编程语言 > 详细

Centos 安装 Python 3.6.1

时间:2017-06-18 23:44:29      阅读:388      评论:0      收藏:0      [点我收藏+]

标签:nbsp   install   tps   usr   port   org   configure   安装   cti   

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

标签:nbsp   install   tps   usr   port   org   configure   安装   cti   

原文地址:http://www.cnblogs.com/hardysui/p/7045754.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!