1、为了后面安装好python后 python交互模式不出现方向键等乱码
先安装或升级一下readline模块
-
# yum -y install readline readline-devel
2、下载python源码包
-
$ wget http://www.python.org/ftp/python/2.7.4/Python-2.7.4.tgz .
-
$ ./configure --prefix=/home/work/Naruto/python/
-
$ make all && make install
3、编辑并追加
-
$ vim ~/.bashrc
-
export PATH=/home/autonavi/Naruto/python/bin:$PATH
4、生效PATH
阅读(738) | 评论(0) | 转发(0) |