最近看到很多软件开始支持python3系列了,尤其科学计算里面的numpy已经开始宣称2018年后不在支持python2 ,所以我还是觉得早点转吧。
为了学习方便,自己在阿里云上申请了个低配置的机器,用起来还很不错。
下面是在阿里云centos上安装py3.5的步骤
1. 安装 Software Collections 源
. yum install centos-release-scl
2. 安装 python3.5
yum install rh-python35
3. 启用 python3.5
scl enable rh-python35 bash
成功安装
[root@50eb5057baac /]# python
Python 3.5.1 (default, Oct 21 2016, 21:37:19)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>