centos6 升級Python版本至2.7.8

wget http://python.org/ftp/python/2.7.8/Python-2.7.8.tgzpython

            [root@localhost ~]# tar zxvf Python-2.7.8.tgzvim

            [root@localhost Python-2.7.8]# ./configure  --prefix=/usr/local/python27ide

            [root@localhost Python-2.7.8]# make && make installspa

            [root@localhost Python-2.7.8]# ln -s /usr/local/python27/bin/pyorm

            [root@localhost Python-2.7.8]# ln -s /usr/local/python27/bin/python /usr/bin/blog

            [root@localhost Python-2.7.8]# python -Vci

                Python 2.7.8get

           解決yum的Python版本問題it

            [root@localhost Python-2.7.8]# vim /usr/bin/yum io

              #!/usr/bin/python2.6               Python2.6版本位置

            [root@localhost Python-2.7.8]# yum

            Loaded plugins: fastestmirror

            You need to give some command

            Usage: yum [options] COMMAND

            List of Commands:

            check          Check for problems in the rpmdb

            check-update   Check for available package updates

            clean          Remove cached data

            deplist        List a package's dependencies

            synchronization Synchronize installed packages to the latest available versions

            downgrade      downgrade a package

            erase          Remove a package or packages from your system

         wKioL1bGfmrx9yrDAAAuz9bhGzo560.jpg

相關文章
相關標籤/搜索