Update Python 3.5 to 3.6 via terminal












9














Using Ubuntu 17.04. After update Python 3.5 to 3.6 via terminal according to https://askubuntu.com/a/865569/695385 still showing that version is 3.5.3.



~$ python3 --version
Python 3.5.3


How is this installed?










share|improve this question




















  • 1




    How did you update it?
    – edwinksl
    Jun 6 '17 at 23:53










  • askubuntu.com/a/865569/695385
    – Stanislav Voloshchuk
    Jun 7 '17 at 0:19










  • Then you call it using python3.6. python3 will remain symlinked to python3.5 and you should keep it that way. Look into virtual environments like Oli wrote in his answer.
    – edwinksl
    Jun 7 '17 at 0:41












  • Thanx, now I`ve to find out how to use virtualenv.
    – Stanislav Voloshchuk
    Jun 7 '17 at 0:47
















9














Using Ubuntu 17.04. After update Python 3.5 to 3.6 via terminal according to https://askubuntu.com/a/865569/695385 still showing that version is 3.5.3.



~$ python3 --version
Python 3.5.3


How is this installed?










share|improve this question




















  • 1




    How did you update it?
    – edwinksl
    Jun 6 '17 at 23:53










  • askubuntu.com/a/865569/695385
    – Stanislav Voloshchuk
    Jun 7 '17 at 0:19










  • Then you call it using python3.6. python3 will remain symlinked to python3.5 and you should keep it that way. Look into virtual environments like Oli wrote in his answer.
    – edwinksl
    Jun 7 '17 at 0:41












  • Thanx, now I`ve to find out how to use virtualenv.
    – Stanislav Voloshchuk
    Jun 7 '17 at 0:47














9












9








9


3





Using Ubuntu 17.04. After update Python 3.5 to 3.6 via terminal according to https://askubuntu.com/a/865569/695385 still showing that version is 3.5.3.



~$ python3 --version
Python 3.5.3


How is this installed?










share|improve this question















Using Ubuntu 17.04. After update Python 3.5 to 3.6 via terminal according to https://askubuntu.com/a/865569/695385 still showing that version is 3.5.3.



~$ python3 --version
Python 3.5.3


How is this installed?







apt python3






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 9 '18 at 10:28









Melebius

4,45751838




4,45751838










asked Jun 6 '17 at 23:18









Stanislav Voloshchuk

48116




48116








  • 1




    How did you update it?
    – edwinksl
    Jun 6 '17 at 23:53










  • askubuntu.com/a/865569/695385
    – Stanislav Voloshchuk
    Jun 7 '17 at 0:19










  • Then you call it using python3.6. python3 will remain symlinked to python3.5 and you should keep it that way. Look into virtual environments like Oli wrote in his answer.
    – edwinksl
    Jun 7 '17 at 0:41












  • Thanx, now I`ve to find out how to use virtualenv.
    – Stanislav Voloshchuk
    Jun 7 '17 at 0:47














  • 1




    How did you update it?
    – edwinksl
    Jun 6 '17 at 23:53










  • askubuntu.com/a/865569/695385
    – Stanislav Voloshchuk
    Jun 7 '17 at 0:19










  • Then you call it using python3.6. python3 will remain symlinked to python3.5 and you should keep it that way. Look into virtual environments like Oli wrote in his answer.
    – edwinksl
    Jun 7 '17 at 0:41












  • Thanx, now I`ve to find out how to use virtualenv.
    – Stanislav Voloshchuk
    Jun 7 '17 at 0:47








1




1




How did you update it?
– edwinksl
Jun 6 '17 at 23:53




How did you update it?
– edwinksl
Jun 6 '17 at 23:53












askubuntu.com/a/865569/695385
– Stanislav Voloshchuk
Jun 7 '17 at 0:19




askubuntu.com/a/865569/695385
– Stanislav Voloshchuk
Jun 7 '17 at 0:19












Then you call it using python3.6. python3 will remain symlinked to python3.5 and you should keep it that way. Look into virtual environments like Oli wrote in his answer.
– edwinksl
Jun 7 '17 at 0:41






Then you call it using python3.6. python3 will remain symlinked to python3.5 and you should keep it that way. Look into virtual environments like Oli wrote in his answer.
– edwinksl
Jun 7 '17 at 0:41














Thanx, now I`ve to find out how to use virtualenv.
– Stanislav Voloshchuk
Jun 7 '17 at 0:47




Thanx, now I`ve to find out how to use virtualenv.
– Stanislav Voloshchuk
Jun 7 '17 at 0:47










3 Answers
3






active

oldest

votes


















6














How did you upgrade? I suspect you may have a python3.6 binary somewhere.



Generally speaking, you never want to replace /usr/bin/python or /usr/bin/python3 with your own fruity versions. Important parts of Ubuntu require their stable Python environments, and largely speaking, that is incompatible with you mucking around.



That all said, having a /usr/bin/python3.6 (or /usr/local/bin/python3.6, or whatever in your path) would be fine. If you don't want to type all that in each time, you might want to look at virtualenv and the various wrapper automation options for it. This has the additional bonus of not threatening your system's site_packages with your development work.






share|improve this answer





















  • askubuntu.com/a/865569/695385
    – Stanislav Voloshchuk
    Jun 7 '17 at 0:20



















4














I had the same problem, I did the following instruction to resolve it:



After install Python3.6:



To make python3 use the new installed Python 3.6 instead of the default 3.5 release, run following 2 commands:



sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2


Finally, switch between the two Python versions for python3 via the following command:



sudo update-alternatives --config python3


Then select the /usr/bin/python3.6 -- automode in choices menu, for me that was 0 row.





[Result]:



$ python3 -V
Python 3.6.6


Or:



$ python3 --version
Python 3.6.6





share|improve this answer































    1














    Installing and upgrading to Python3.6 requires the command



    sudo apt-get upgrade python3.6





    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      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',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f922853%2fupdate-python-3-5-to-3-6-via-terminal%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      6














      How did you upgrade? I suspect you may have a python3.6 binary somewhere.



      Generally speaking, you never want to replace /usr/bin/python or /usr/bin/python3 with your own fruity versions. Important parts of Ubuntu require their stable Python environments, and largely speaking, that is incompatible with you mucking around.



      That all said, having a /usr/bin/python3.6 (or /usr/local/bin/python3.6, or whatever in your path) would be fine. If you don't want to type all that in each time, you might want to look at virtualenv and the various wrapper automation options for it. This has the additional bonus of not threatening your system's site_packages with your development work.






      share|improve this answer





















      • askubuntu.com/a/865569/695385
        – Stanislav Voloshchuk
        Jun 7 '17 at 0:20
















      6














      How did you upgrade? I suspect you may have a python3.6 binary somewhere.



      Generally speaking, you never want to replace /usr/bin/python or /usr/bin/python3 with your own fruity versions. Important parts of Ubuntu require their stable Python environments, and largely speaking, that is incompatible with you mucking around.



      That all said, having a /usr/bin/python3.6 (or /usr/local/bin/python3.6, or whatever in your path) would be fine. If you don't want to type all that in each time, you might want to look at virtualenv and the various wrapper automation options for it. This has the additional bonus of not threatening your system's site_packages with your development work.






      share|improve this answer





















      • askubuntu.com/a/865569/695385
        – Stanislav Voloshchuk
        Jun 7 '17 at 0:20














      6












      6








      6






      How did you upgrade? I suspect you may have a python3.6 binary somewhere.



      Generally speaking, you never want to replace /usr/bin/python or /usr/bin/python3 with your own fruity versions. Important parts of Ubuntu require their stable Python environments, and largely speaking, that is incompatible with you mucking around.



      That all said, having a /usr/bin/python3.6 (or /usr/local/bin/python3.6, or whatever in your path) would be fine. If you don't want to type all that in each time, you might want to look at virtualenv and the various wrapper automation options for it. This has the additional bonus of not threatening your system's site_packages with your development work.






      share|improve this answer












      How did you upgrade? I suspect you may have a python3.6 binary somewhere.



      Generally speaking, you never want to replace /usr/bin/python or /usr/bin/python3 with your own fruity versions. Important parts of Ubuntu require their stable Python environments, and largely speaking, that is incompatible with you mucking around.



      That all said, having a /usr/bin/python3.6 (or /usr/local/bin/python3.6, or whatever in your path) would be fine. If you don't want to type all that in each time, you might want to look at virtualenv and the various wrapper automation options for it. This has the additional bonus of not threatening your system's site_packages with your development work.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Jun 6 '17 at 23:46









      Oli

      220k85557762




      220k85557762












      • askubuntu.com/a/865569/695385
        – Stanislav Voloshchuk
        Jun 7 '17 at 0:20


















      • askubuntu.com/a/865569/695385
        – Stanislav Voloshchuk
        Jun 7 '17 at 0:20
















      askubuntu.com/a/865569/695385
      – Stanislav Voloshchuk
      Jun 7 '17 at 0:20




      askubuntu.com/a/865569/695385
      – Stanislav Voloshchuk
      Jun 7 '17 at 0:20













      4














      I had the same problem, I did the following instruction to resolve it:



      After install Python3.6:



      To make python3 use the new installed Python 3.6 instead of the default 3.5 release, run following 2 commands:



      sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1

      sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2


      Finally, switch between the two Python versions for python3 via the following command:



      sudo update-alternatives --config python3


      Then select the /usr/bin/python3.6 -- automode in choices menu, for me that was 0 row.





      [Result]:



      $ python3 -V
      Python 3.6.6


      Or:



      $ python3 --version
      Python 3.6.6





      share|improve this answer




























        4














        I had the same problem, I did the following instruction to resolve it:



        After install Python3.6:



        To make python3 use the new installed Python 3.6 instead of the default 3.5 release, run following 2 commands:



        sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1

        sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2


        Finally, switch between the two Python versions for python3 via the following command:



        sudo update-alternatives --config python3


        Then select the /usr/bin/python3.6 -- automode in choices menu, for me that was 0 row.





        [Result]:



        $ python3 -V
        Python 3.6.6


        Or:



        $ python3 --version
        Python 3.6.6





        share|improve this answer


























          4












          4








          4






          I had the same problem, I did the following instruction to resolve it:



          After install Python3.6:



          To make python3 use the new installed Python 3.6 instead of the default 3.5 release, run following 2 commands:



          sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1

          sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2


          Finally, switch between the two Python versions for python3 via the following command:



          sudo update-alternatives --config python3


          Then select the /usr/bin/python3.6 -- automode in choices menu, for me that was 0 row.





          [Result]:



          $ python3 -V
          Python 3.6.6


          Or:



          $ python3 --version
          Python 3.6.6





          share|improve this answer














          I had the same problem, I did the following instruction to resolve it:



          After install Python3.6:



          To make python3 use the new installed Python 3.6 instead of the default 3.5 release, run following 2 commands:



          sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1

          sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 2


          Finally, switch between the two Python versions for python3 via the following command:



          sudo update-alternatives --config python3


          Then select the /usr/bin/python3.6 -- automode in choices menu, for me that was 0 row.





          [Result]:



          $ python3 -V
          Python 3.6.6


          Or:



          $ python3 --version
          Python 3.6.6






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 2 days ago

























          answered Aug 9 '18 at 8:25









          Benyamin Jafari

          319214




          319214























              1














              Installing and upgrading to Python3.6 requires the command



              sudo apt-get upgrade python3.6





              share|improve this answer




























                1














                Installing and upgrading to Python3.6 requires the command



                sudo apt-get upgrade python3.6





                share|improve this answer


























                  1












                  1








                  1






                  Installing and upgrading to Python3.6 requires the command



                  sudo apt-get upgrade python3.6





                  share|improve this answer














                  Installing and upgrading to Python3.6 requires the command



                  sudo apt-get upgrade python3.6






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Jul 24 '18 at 14:37









                  Akshay L Aradhya

                  1034




                  1034










                  answered Jan 4 '18 at 16:28









                  Sreenath

                  111




                  111






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f922853%2fupdate-python-3-5-to-3-6-via-terminal%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      How to make a Squid Proxy server?

                      Is this a new Fibonacci Identity?

                      19世紀