一、打开python主页:https://www.python.org/downloads/
本次安装选择Pthon 2.7.13版本
二、下载python安装包:https://www.python.org/downloads/release/python-2713/
三、安装
$ tar xf Python-2.7.13.tar.xz
$ ./configure --prefix=/public1/home/Serenity/installed_software/Python-2.7.13
$ make
$ make install
四、设置环境变量
$ vi ~/.bash_profile
#Python
export PythonPATH:/public1/home/Serenity/installed_software/Python-2.7.13/:$PythonPATH
$ source ~/.bash_profile
时间: 2024-11-08 22:05:29