Linux下python升级

安装python2.7

  1. cd /tmp
  2. wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
  3. tar xzf Python-2.7.3.tgz
  4. cd Python-2.7.3
  5. ./configure && make && make install
  6. ln -sf /usr/local/bin/python /usr/bin/python
  1. [root@localhost ~]# python -V
  2. Python 2.7.3

修复yum
编辑/usr/bin/yum,把/usr/bin/python 改为/usr/bin/python2.4

标签:LinuxPython 发布于:2019-11-22 23:53:28