# 在控制台中
# 下载
wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0a1.tar.xz
# 解压
tar xvf Python-3.6.0a1.tar.xz
# 进入目录
cd Python-3.6.0a1/
# 执行配置
./configure
# install
make && make install
遇到错误 :
/usr/bin/install: cannot create regular file /usr/local/bin/python3.6: Permission denied make: *** [altbininstall] Error 1
解决方式
在 Python-3.6.0a1/目录下
./configure --prefix=$HOME/py26
make install