在Linux自己Home下安装python

一、打开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

原文地址:https://www.cnblogs.com/Datapotumas/p/6292379.html