升级centos中的python版本

  • A+
所属分类:运维教程

查看python的版本

  1. python  -V

下载python2.7.13版

  1. wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz

解压

  1. tar -zxvf Python-2.7.13.tgz

更改工作目录

  1. cd Python-2.7.13

安装

  1. ./configure && make && make install

建立软链,使系统默认的python指向python2.7.13

  1. mv /usr/bin/python /usr/bin/python.bak
  2. ln -s /usr/local/bin/python2.7 /usr/bin/python

重新检验Python的版本

  1. python  -V
  • 问答中心
  • 微信小程序扫一扫
  • weinxin
  • 微信公众
  • 微信公众号扫一扫
  • weinxin

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:29   其中:访客  29   博主  0

    • avatar my url

      As I web site possessor I believe the content matter here is rattling wonderful , appreciate it for your hard work. You should keep it up forever! Best of luck.

      • avatar Immobilienbewertung Dresden

        great publish, very informative. I’m wondering why the opposite experts of this sector don’t understand this. You must continue your writing. I am sure, you’ve a great readers’ base already!

        • avatar grolyrtolemcs

          Hi, I think your site might be having browser compatibility issues. When I look at your website in Safari, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, fantastic blog!

          • avatar cbd oil that works 2020

            An outstanding share! I have just forwarded this onto a friend who had been conducting a little homework on this.
            And he in fact ordered me breakfast simply because I stumbled upon it for him…
            lol. So let me reword this…. Thank YOU for the meal!! But yeah,
            thanx for spending some time to talk about this subject here on your
            web site.

            • avatar GAY PARTY BOYS

              I don’t commonly comment but I gotta say thankyou for the post on this special one : D.

              • avatar cbd oil that works 2020

                I am regular visitor, how are you everybody?
                This piece of writing posted at this site is really good.

                • avatar tinyurl.com

                  I think that everything said was very logical.
                  However, what about this? suppose you added a little information? I mean, I don’t wish to tell you how to run your website, however what if you added a post title that makes people want more?
                  I mean 升级centos中的python版本 | 菜鸟博客
                  is kinda boring. You should look at Yahoo’s front page and see how they write post headlines to get viewers to click.
                  You might add a video or a picture or two to get people interested about what you’ve
                  got to say. Just my opinion, it would make your blog a little livelier.

                  • Sweet blog! I found it while surfing around on Yahoo
                    News. Do you have any suggestions on how to get listed
                    in Yahoo News? I’ve been trying for a while but I never seem to get there!
                    Cheers

                    • Cbd oil that works 2020
                      Hello there! This post couldn’t be written much better!
                      Looking through this article reminds me of my previous
                      roommate! He continually kept preaching about this. I’ll forward
                      this information to him. Pretty sure he’ll have a great
                      read. Thanks for sharing! best cbd oil for pain http://tinyurl.com/cbd-oil-that-works-2020 cbd
                      oil that works 2020 http://tinyurl.com/cbd-oil-that-works-2020