python2.6升级到python2.7

  1. python-V
  2. wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2
  3. rm-rfPython-2.7.3.tar.bz2 
  4. tar jxfPython-2.7.3.tar.bz2 
  5. cdPython-2.7.3
  6. ./configure 
  7. make all
  8. make install
  9. make clean
  10. make distclean
  11. /usr/local/bin/python2.7-V
  12. mv/usr/bin/python/usr/bin/python2.6.6
  13. ln-s/usr/local/bin/python2.7/usr/bin/python
  14. python-V



Last modification:July 22nd, 2016 at 10:55 pm

Leave a Comment