在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

 

posted @ 2017-01-17 11:34  Datapotumas  阅读(1628)  评论(0编辑  收藏  举报