Degrading to python 3.5 from python 3.6 on ubuntu












1















I have python 3.6.3 currently on my system(ubunut 16.04). but i found that python 3.6 is not supported on ubuntu 16.04 so i want to get python 3.5 on my system.



I installed it from here.



Can anyone tell in detail how to do that...










share|improve this question

























  • Please edit your question and include specific details about how exactly you installed the newer python version.

    – dobey
    Nov 15 '17 at 20:40
















1















I have python 3.6.3 currently on my system(ubunut 16.04). but i found that python 3.6 is not supported on ubuntu 16.04 so i want to get python 3.5 on my system.



I installed it from here.



Can anyone tell in detail how to do that...










share|improve this question

























  • Please edit your question and include specific details about how exactly you installed the newer python version.

    – dobey
    Nov 15 '17 at 20:40














1












1








1








I have python 3.6.3 currently on my system(ubunut 16.04). but i found that python 3.6 is not supported on ubuntu 16.04 so i want to get python 3.5 on my system.



I installed it from here.



Can anyone tell in detail how to do that...










share|improve this question
















I have python 3.6.3 currently on my system(ubunut 16.04). but i found that python 3.6 is not supported on ubuntu 16.04 so i want to get python 3.5 on my system.



I installed it from here.



Can anyone tell in detail how to do that...







16.04 python3






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 15 '17 at 20:42







Shubham Gupta

















asked Nov 15 '17 at 20:38









Shubham GuptaShubham Gupta

8310




8310













  • Please edit your question and include specific details about how exactly you installed the newer python version.

    – dobey
    Nov 15 '17 at 20:40



















  • Please edit your question and include specific details about how exactly you installed the newer python version.

    – dobey
    Nov 15 '17 at 20:40

















Please edit your question and include specific details about how exactly you installed the newer python version.

– dobey
Nov 15 '17 at 20:40





Please edit your question and include specific details about how exactly you installed the newer python version.

– dobey
Nov 15 '17 at 20:40










2 Answers
2






active

oldest

votes


















2














Here, this should help.



Download python 3.5



cd /usr/src
wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
sudo tar xzf Python-3.5.2.tgz


Install required packages



sudo apt-get install build-essential checkinstall 
libreadline-gplv2-dev libncursesw5-dev libssl-dev
libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev


Install python



cd Python-3.5.2
sudo ./configure
sudo make altinstall


Now check the python version python -V






share|improve this answer

































    0














    Simplest way of installing and switching to other version of python is using pyenv.



    # Get Pyenv
    curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash

    # add pyenv to ~/.bashrc
    echo -e "export PATH="/root/.pyenv/bin:$PATH" n eval "$(pyenv init -)" n eval "$(pyenv virtualenv-init -)" " >> ~/.bashrc
    source ~/.bashrc

    # install python 3 via pyenv
    pyenv install 3.5.6

    # verify
    pyenv versions

    # pyenv local <version> : use this to set python version per directory.
    # pyenv global <version> : use this to set python version globally.





    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%2f976805%2fdegrading-to-python-3-5-from-python-3-6-on-ubuntu%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      2














      Here, this should help.



      Download python 3.5



      cd /usr/src
      wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
      sudo tar xzf Python-3.5.2.tgz


      Install required packages



      sudo apt-get install build-essential checkinstall 
      libreadline-gplv2-dev libncursesw5-dev libssl-dev
      libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev


      Install python



      cd Python-3.5.2
      sudo ./configure
      sudo make altinstall


      Now check the python version python -V






      share|improve this answer






























        2














        Here, this should help.



        Download python 3.5



        cd /usr/src
        wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
        sudo tar xzf Python-3.5.2.tgz


        Install required packages



        sudo apt-get install build-essential checkinstall 
        libreadline-gplv2-dev libncursesw5-dev libssl-dev
        libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev


        Install python



        cd Python-3.5.2
        sudo ./configure
        sudo make altinstall


        Now check the python version python -V






        share|improve this answer




























          2












          2








          2







          Here, this should help.



          Download python 3.5



          cd /usr/src
          wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
          sudo tar xzf Python-3.5.2.tgz


          Install required packages



          sudo apt-get install build-essential checkinstall 
          libreadline-gplv2-dev libncursesw5-dev libssl-dev
          libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev


          Install python



          cd Python-3.5.2
          sudo ./configure
          sudo make altinstall


          Now check the python version python -V






          share|improve this answer















          Here, this should help.



          Download python 3.5



          cd /usr/src
          wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
          sudo tar xzf Python-3.5.2.tgz


          Install required packages



          sudo apt-get install build-essential checkinstall 
          libreadline-gplv2-dev libncursesw5-dev libssl-dev
          libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev


          Install python



          cd Python-3.5.2
          sudo ./configure
          sudo make altinstall


          Now check the python version python -V







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 28 '17 at 12:28









          Videonauth

          24.1k1270100




          24.1k1270100










          answered Nov 28 '17 at 12:22









          Giannis KatsiniGiannis Katsini

          211




          211

























              0














              Simplest way of installing and switching to other version of python is using pyenv.



              # Get Pyenv
              curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash

              # add pyenv to ~/.bashrc
              echo -e "export PATH="/root/.pyenv/bin:$PATH" n eval "$(pyenv init -)" n eval "$(pyenv virtualenv-init -)" " >> ~/.bashrc
              source ~/.bashrc

              # install python 3 via pyenv
              pyenv install 3.5.6

              # verify
              pyenv versions

              # pyenv local <version> : use this to set python version per directory.
              # pyenv global <version> : use this to set python version globally.





              share|improve this answer




























                0














                Simplest way of installing and switching to other version of python is using pyenv.



                # Get Pyenv
                curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash

                # add pyenv to ~/.bashrc
                echo -e "export PATH="/root/.pyenv/bin:$PATH" n eval "$(pyenv init -)" n eval "$(pyenv virtualenv-init -)" " >> ~/.bashrc
                source ~/.bashrc

                # install python 3 via pyenv
                pyenv install 3.5.6

                # verify
                pyenv versions

                # pyenv local <version> : use this to set python version per directory.
                # pyenv global <version> : use this to set python version globally.





                share|improve this answer


























                  0












                  0








                  0







                  Simplest way of installing and switching to other version of python is using pyenv.



                  # Get Pyenv
                  curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash

                  # add pyenv to ~/.bashrc
                  echo -e "export PATH="/root/.pyenv/bin:$PATH" n eval "$(pyenv init -)" n eval "$(pyenv virtualenv-init -)" " >> ~/.bashrc
                  source ~/.bashrc

                  # install python 3 via pyenv
                  pyenv install 3.5.6

                  # verify
                  pyenv versions

                  # pyenv local <version> : use this to set python version per directory.
                  # pyenv global <version> : use this to set python version globally.





                  share|improve this answer













                  Simplest way of installing and switching to other version of python is using pyenv.



                  # Get Pyenv
                  curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash

                  # add pyenv to ~/.bashrc
                  echo -e "export PATH="/root/.pyenv/bin:$PATH" n eval "$(pyenv init -)" n eval "$(pyenv virtualenv-init -)" " >> ~/.bashrc
                  source ~/.bashrc

                  # install python 3 via pyenv
                  pyenv install 3.5.6

                  # verify
                  pyenv versions

                  # pyenv local <version> : use this to set python version per directory.
                  # pyenv global <version> : use this to set python version globally.






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Jan 11 at 0:21









                  rɑːdʒɑrɑːdʒɑ

                  57.5k85217301




                  57.5k85217301






























                      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.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f976805%2fdegrading-to-python-3-5-from-python-3-6-on-ubuntu%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

                      flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                      Mangá

                      Eduardo VII do Reino Unido