Updated: 2017-10-22
离线阅读参考这个
参考链接
安装 python 3.x
python 3.x
brew install python3
命令行python 然后狂按tab键,会显示很多python,选择需要的,做一个别名,结束
➜ ~ alias python='python3'
永久生效,请写到配置文件
或者直接使用 python3 运行 python3.x
python3
python3.x
Centos
yum install gcc -y yum install openssl-devel
wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz xz -d Python-3.6.4.tar.xz tar xf Python-3.6.4.tar
cd Python-3.6.4 ./configure && make && make install