how to make python2.7 main python (alongside python 2.6) without breaking yum in centos?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I was told that yum is dependent on python 2.6 so i cannot remove 2.6 but i need python 2.7 to run my django project on my centOS server. Any workaround is appreciated as well.







share|improve this question
























    up vote
    1
    down vote

    favorite












    I was told that yum is dependent on python 2.6 so i cannot remove 2.6 but i need python 2.7 to run my django project on my centOS server. Any workaround is appreciated as well.







    share|improve this question






















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I was told that yum is dependent on python 2.6 so i cannot remove 2.6 but i need python 2.7 to run my django project on my centOS server. Any workaround is appreciated as well.







      share|improve this question












      I was told that yum is dependent on python 2.6 so i cannot remove 2.6 but i need python 2.7 to run my django project on my centOS server. Any workaround is appreciated as well.









      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 29 '17 at 14:58









      Yogesh

      61




      61




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          I've been using pyenv for such tasks. Basically it allows to install multiple Python versions in your home dir, so that system Python is not affected and you can switch between versions.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f407755%2fhow-to-make-python2-7-main-python-alongside-python-2-6-without-breaking-yum-in%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote













            I've been using pyenv for such tasks. Basically it allows to install multiple Python versions in your home dir, so that system Python is not affected and you can switch between versions.






            share|improve this answer
























              up vote
              1
              down vote













              I've been using pyenv for such tasks. Basically it allows to install multiple Python versions in your home dir, so that system Python is not affected and you can switch between versions.






              share|improve this answer






















                up vote
                1
                down vote










                up vote
                1
                down vote









                I've been using pyenv for such tasks. Basically it allows to install multiple Python versions in your home dir, so that system Python is not affected and you can switch between versions.






                share|improve this answer












                I've been using pyenv for such tasks. Basically it allows to install multiple Python versions in your home dir, so that system Python is not affected and you can switch between versions.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 29 '17 at 16:26









                user3120146

                261




                261



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f407755%2fhow-to-make-python2-7-main-python-alongside-python-2-6-without-breaking-yum-in%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Peggy Mitchell

                    Palaiologos

                    The Forum (Inglewood, California)