Linux源码安装
1.准备:yum install gcc-* glibc-*
2.解包:tar -xvf
3.执行configure脚本,--prefix指定安装路径:./configure --prefix=/usr/local/python3.5
4.编译:make
5.安装:make install
配置环境变量:PATH=(把原来的路径加上(echo $PATH))/python可执行文件路径(文件修改:vim /etc/profile,在最后一行写上export PATH)
window安装
安装后配置环境变量:计算机属性==>高级系统设置==>环境变量:Path添加python.exe的目录
浙公网安备 33010602011771号