linux下的python更新及搭建apache+python
1. 下载安装包
wget http://python.org/ftp/python/2.6.6/Python-2.6.6.tgz
2. 解压
tar -xvf Python-2.6.6.tgz
3. 编译
cd Python-2.6.6
./configure --prefix=/usr/local/python26
make
make install
4.覆盖原来的python
mv /usr/bin/python /usr/bin/python_old
ln -s /usr/local/python26/bin/python /usr/bin/
5. 检查
python -V
6. 修改yum
vim /usr/bin/yum
将#!/usr/bin/python修改为
#!/usr/bin/python2.4
相关推荐
以梦为马不负韶华 2020-10-20
huavhuahua 2020-11-20
weiiron 2020-11-16
cakecc00 2020-11-15
千锋 2020-11-15
JakobHu 2020-11-14
guangcheng 2020-11-13
xirongxudlut 2020-11-10
solarLan 2020-11-09
pythonxuexi 2020-11-08
文山羊 2020-11-07
susmote 2020-11-07
wuShiJingZuo 2020-11-05
Pythonjeff远 2020-11-06
jacktangj 2020-11-04
lousir 2020-11-04
YENCSDN 2020-11-17
lsjweiyi 2020-11-17
houmenghu 2020-11-17