wget http://python.org/ftp/python/2.7.4/Python-2.7.4.tgz
ls
tar xzvf Python-2.7.4.tgz
cd Python-2.7.4
ls
./configure --prefix=/usr/local/python2.7.4
make && make install
whereis python
mv /usr/bin/python /usr/bin/python2.4.3
ln -s /usr/local/python2.7.4/bin/python /usr/bin/python
python -v
ls
tar xzvf Python-2.7.4.tgz
cd Python-2.7.4
ls
./configure --prefix=/usr/local/python2.7.4
make && make install
whereis python
mv /usr/bin/python /usr/bin/python2.4.3
ln -s /usr/local/python2.7.4/bin/python /usr/bin/python
python -v
history
只做记录
本文详细介绍了如何使用wget下载Python 2.7.4源码包,通过tar、xz、vzf命令解压并配置安装目录,使用./configure命令进行配置,make和make install完成编译安装过程,最终通过whereis和mv命令调整系统路径,实现Python 2.7.4的安装与环境配置。
4万+

被折叠的 条评论
为什么被折叠?



