环境
系统:CentOS 6.6
软件:Python-3.6.1.tgz
准备
- 安装依赖包
# yum install gcc openssl-devel zlib-devel
Python3安装
-
安装
# tar -xzvf Python-3.6.1.tgz # cd Python-3.6.1 # ./configure --prefix=/usr/local/python3 # make # make install
-
配置环境变量
# vim /etc/profile export PATH=/usr/local/python3/bin:$PATH # source /etc/profile
网友评论