在没有root权限情况下安装python

1、tar -xvf python-2.6.4.tar
2、Cd python-2.6.4
3、./configure --prefix=/home/tmxu/local/python
4、make && make install
5、将python的路径加入.bash_profile中的PATH.,并执行source .bash_profile使配置立即生效

PATH=$PATH:/home/tmxu/local/python/bin

 export PATH=/home/tmxu/local/python/bin/:$PATH

  

posted @ 2013-05-09 19:52  明之道  阅读(2661)  评论(0编辑  收藏  举报