CentOS7上安装Python3
2017-11-12 11:02:02    291    0    0
lijim

废话少说,直接上代码:)

参考: How To Install and Set Up a Local Programming Environment for Python 3

#!/bin/bash
# install and setup python3 on centos

sudo yum -y update
sudo yum -y install yum-utils
sudo yum -y groupinstall development

# install python3.6
sudo yum -y install https://centos7.iuscommunity.org/ius-release.rpm
sudo yum -y install python36u
sudo yum -y install python36u-pip

# install python development tools
sudo yum -y install python36u-devel

# setup virtual environments
mkdir ~/environments
cd ~/environments
python3.6 -m venv python3.6
source python3.6/bin/activate

上一篇: Pypy试用记

下一篇: What's Pony, anyway?

291 人读过
立即登录, 发表评论.
没有帐号? 立即注册
0 条评论
文档导航