How to upgrade python version to 3.x?upgrade chroot version on centOS 5?Docker storage setup utility absent...

How to compare the ls output of two folders to find a missing directory?

How can a dictatorship government be beneficial to a dictator in a post-scarcity society?

Why did Old English lose both thorn and eth?

Party going through airport security at separate times?

What attributes and how big would a sea creature(s) need to be able to tow a ship?

When an electron changes its spin, or any other intrinsic property, is it still the same electron?

Does a wizard need their hands free in order to cause their familiar from the Find Familiar spell to reappear?

Why archangel Michael didn't save Jesus when he was crucified?

Credit score and financing new car

The rigidity of the countable product of free groups

What is the parallel of Day of the Dead with Stranger things?

Swapping "Good" and "Bad"

A horrible Stockfish chess engine evaluation

Is there any reason why MCU changed the Snap to Blip

What is /bin/red

Misspelling my name on my mathematical publications

Why did Harry Potter get a bedroom?

[Future]Historical experience as a guide to warship design?

What is the minimum time required for final wash in film development?

Is there a minimum field size for peah to apply?

Write a function

What are some further readings in Econometrics you recommend?

Why does the Antonov AN-225 not have any winglets?

How do we handle pauses in a dialogue?



How to upgrade python version to 3.x?


upgrade chroot version on centOS 5?Docker storage setup utility absent in 1.11.x versionHow to Upgrade linux fedora 14 to the latest versionHow to install a specific version of a ClearLinux bundle?upgrade to the centos version of the linuxHow Docker uses Python?Dietpi - How to upgrade my kernel version to latest versionHow to specifiy a static IP address with docker-compose.yml version 3?Local Python Repository Packet InstallationCannot mix incompatible Qt library (version 0x50c03) with this library (version 0x50c00)






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







-2















Base image in the below dockerfile is using python 2.7



FROM openjdk:10.0.2-jdk


RUN curl -sSLO https://files.pythonhosted.org/packages/1d/64/a18a487b4391a05b9c7f938b94a16d80305bf0369c6b0b9509e86165e1d3/setuptools-41.0.1.zip &&
unzip setuptools-41.0.1.zip -d /tmp &&
cd /tmp/setuptools-41.0.1 &&
python setup.py install &&
rm -rf /tmp/*

RUN curl -sSLO https://files.pythonhosted.org/packages/93/ab/f86b61bef7ab14909bd7ec3cd2178feb0a1c86d451bc9bccd5a1aedcde5f/pip-19.1.1.tar.gz &&
tar -xzvf pip-19.1.1.tar.gz -C /tmp &&
cd /tmp/pip-19.1.1 &&
python setup.py install &&
rm -rf /tmp/*

ENV VERSION=0.17.0

RUN curl -sSLO https://github.com/awslabs/aws-sam-cli/releases/download/v$VERSION/aws-sam-cli-${VERSION}.x86_64_linux.bottle.tar.gz &&
tar -C /usr/local/bin -zxvf /aws-sam-cli-${VERSION}.x86_64_linux.bottle.tar.gz




We would like to upgrade to python3.6



But base image does not support the same. Base image cannot be changed, because there are other dependencies relying on this base image





How to upgrade python2.7 to python3.6?










share|improve this question





























    -2















    Base image in the below dockerfile is using python 2.7



    FROM openjdk:10.0.2-jdk


    RUN curl -sSLO https://files.pythonhosted.org/packages/1d/64/a18a487b4391a05b9c7f938b94a16d80305bf0369c6b0b9509e86165e1d3/setuptools-41.0.1.zip &&
    unzip setuptools-41.0.1.zip -d /tmp &&
    cd /tmp/setuptools-41.0.1 &&
    python setup.py install &&
    rm -rf /tmp/*

    RUN curl -sSLO https://files.pythonhosted.org/packages/93/ab/f86b61bef7ab14909bd7ec3cd2178feb0a1c86d451bc9bccd5a1aedcde5f/pip-19.1.1.tar.gz &&
    tar -xzvf pip-19.1.1.tar.gz -C /tmp &&
    cd /tmp/pip-19.1.1 &&
    python setup.py install &&
    rm -rf /tmp/*

    ENV VERSION=0.17.0

    RUN curl -sSLO https://github.com/awslabs/aws-sam-cli/releases/download/v$VERSION/aws-sam-cli-${VERSION}.x86_64_linux.bottle.tar.gz &&
    tar -C /usr/local/bin -zxvf /aws-sam-cli-${VERSION}.x86_64_linux.bottle.tar.gz




    We would like to upgrade to python3.6



    But base image does not support the same. Base image cannot be changed, because there are other dependencies relying on this base image





    How to upgrade python2.7 to python3.6?










    share|improve this question

























      -2












      -2








      -2








      Base image in the below dockerfile is using python 2.7



      FROM openjdk:10.0.2-jdk


      RUN curl -sSLO https://files.pythonhosted.org/packages/1d/64/a18a487b4391a05b9c7f938b94a16d80305bf0369c6b0b9509e86165e1d3/setuptools-41.0.1.zip &&
      unzip setuptools-41.0.1.zip -d /tmp &&
      cd /tmp/setuptools-41.0.1 &&
      python setup.py install &&
      rm -rf /tmp/*

      RUN curl -sSLO https://files.pythonhosted.org/packages/93/ab/f86b61bef7ab14909bd7ec3cd2178feb0a1c86d451bc9bccd5a1aedcde5f/pip-19.1.1.tar.gz &&
      tar -xzvf pip-19.1.1.tar.gz -C /tmp &&
      cd /tmp/pip-19.1.1 &&
      python setup.py install &&
      rm -rf /tmp/*

      ENV VERSION=0.17.0

      RUN curl -sSLO https://github.com/awslabs/aws-sam-cli/releases/download/v$VERSION/aws-sam-cli-${VERSION}.x86_64_linux.bottle.tar.gz &&
      tar -C /usr/local/bin -zxvf /aws-sam-cli-${VERSION}.x86_64_linux.bottle.tar.gz




      We would like to upgrade to python3.6



      But base image does not support the same. Base image cannot be changed, because there are other dependencies relying on this base image





      How to upgrade python2.7 to python3.6?










      share|improve this question














      Base image in the below dockerfile is using python 2.7



      FROM openjdk:10.0.2-jdk


      RUN curl -sSLO https://files.pythonhosted.org/packages/1d/64/a18a487b4391a05b9c7f938b94a16d80305bf0369c6b0b9509e86165e1d3/setuptools-41.0.1.zip &&
      unzip setuptools-41.0.1.zip -d /tmp &&
      cd /tmp/setuptools-41.0.1 &&
      python setup.py install &&
      rm -rf /tmp/*

      RUN curl -sSLO https://files.pythonhosted.org/packages/93/ab/f86b61bef7ab14909bd7ec3cd2178feb0a1c86d451bc9bccd5a1aedcde5f/pip-19.1.1.tar.gz &&
      tar -xzvf pip-19.1.1.tar.gz -C /tmp &&
      cd /tmp/pip-19.1.1 &&
      python setup.py install &&
      rm -rf /tmp/*

      ENV VERSION=0.17.0

      RUN curl -sSLO https://github.com/awslabs/aws-sam-cli/releases/download/v$VERSION/aws-sam-cli-${VERSION}.x86_64_linux.bottle.tar.gz &&
      tar -C /usr/local/bin -zxvf /aws-sam-cli-${VERSION}.x86_64_linux.bottle.tar.gz




      We would like to upgrade to python3.6



      But base image does not support the same. Base image cannot be changed, because there are other dependencies relying on this base image





      How to upgrade python2.7 to python3.6?







      linux docker






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 hours ago









      overexchangeoverexchange

      3638 silver badges19 bronze badges




      3638 silver badges19 bronze badges






















          0






          active

          oldest

          votes














          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2funix.stackexchange.com%2fquestions%2f529078%2fhow-to-upgrade-python-version-to-3-x%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • 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%2funix.stackexchange.com%2fquestions%2f529078%2fhow-to-upgrade-python-version-to-3-x%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

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...