Cannot install Python 3.6.8 in virtualenv on Ubuntu 16.04How to leave/exit/deactivate a python virtualenv?Use different Python version with virtualenvNo module named pkg_resourcesHow to install Maven 3 on Ubuntu 17.04/16.10/16.04 LTS/15.10/15.04/14.10/14.04 LTS/13.10/13.04 by using apt-get?Using Python 3 in virtualenvvarying python versions installing eric on ubuntu 16.04 using virtualenvinstalling and configuring virtualenv on ubuntuHow to install python3.7 and create a virtualenv with pip on Ubuntu 18.04?install python 3.5.2 into ubuntu 16.04Pip install failing in virtualenv but not using system python

Grepping string, but include all non-blank lines following each grep match

What does "Scientists rise up against statistical significance" mean? (Comment in Nature)

Air travel with refrigerated insulin

Personal or impersonal in a technical resume

How do I fix the group tension caused by my character stealing and possibly killing without provocation?

Check if object is null and return null

What is the meaning of the following sentence?

What is this high flying aircraft over Pennsylvania?

Do I have to take mana from my deck or hand when tapping a dual land?

Why do Radio Buttons not fill the entire outer circle?

Typing CO_2 easily

Isometric embedding of a genus g surface

Unable to disable Microsoft Store in domain environment

Giving feedback to someone without sounding prejudiced

Why can't the Brexit deadlock in the UK parliament be solved with a plurality vote?

How to test the sharpness of a knife?

How do I prevent inappropriate ads from appearing in my game?

When and why was runway 07/25 at Kai Tak removed?

How much do grades matter for a future academia position?

Identifying "long and narrow" polygons in with PostGIS

Anime with legendary swords made from talismans and a man who could change them with a shattered body

Why does a 97 / 92 key piano exist by Bösendorfer?

Difference between shutdown options

Is there a way to play vibrato on the piano?



Cannot install Python 3.6.8 in virtualenv on Ubuntu 16.04


How to leave/exit/deactivate a python virtualenv?Use different Python version with virtualenvNo module named pkg_resourcesHow to install Maven 3 on Ubuntu 17.04/16.10/16.04 LTS/15.10/15.04/14.10/14.04 LTS/13.10/13.04 by using apt-get?Using Python 3 in virtualenvvarying python versions installing eric on ubuntu 16.04 using virtualenvinstalling and configuring virtualenv on ubuntuHow to install python3.7 and create a virtualenv with pip on Ubuntu 18.04?install python 3.5.2 into ubuntu 16.04Pip install failing in virtualenv but not using system python













0















I am running an AWS EC2 Ubuntu 16.04 instance. I cannot get Python 3.6.8 working in virtualenv. Here is what I did after starting the Ubuntu instance:



1) sudo apt-get update



2) sudo apt-get upgrade



3) Installed Python 3.6.8 according to instruction here: https://tecadmin.net/install-python-3-6-ubuntu-linuxmint/



4) Verified installation with python3.6 -V (console returned "Python 3.6.8")



5) Installed pip3 with sudo apt-get -y install python3-pip



6) Installed virtualenv with sudo pip3 install virtualenv



7) Upgraded pip3 with sudo -H pip3 install --upgrade pip



8) Created virtualenv with virtualenv -p python3 venv



When I activated my virtual env and checked Python version with python3 -V, the console returned "Python 3.5.2". Even after I deactivated the virtual env and checked Python version again, I still get "Python 3.5.2". I never installed Python 3.5 in this Ubuntu system; everything I did to this system is listed above. I tried a few times with new Ubuntu instances and the virtual env changes my Python version to 3.5 every time. What's going on here? I really need Python 3.6.8.










share|improve this question


























    0















    I am running an AWS EC2 Ubuntu 16.04 instance. I cannot get Python 3.6.8 working in virtualenv. Here is what I did after starting the Ubuntu instance:



    1) sudo apt-get update



    2) sudo apt-get upgrade



    3) Installed Python 3.6.8 according to instruction here: https://tecadmin.net/install-python-3-6-ubuntu-linuxmint/



    4) Verified installation with python3.6 -V (console returned "Python 3.6.8")



    5) Installed pip3 with sudo apt-get -y install python3-pip



    6) Installed virtualenv with sudo pip3 install virtualenv



    7) Upgraded pip3 with sudo -H pip3 install --upgrade pip



    8) Created virtualenv with virtualenv -p python3 venv



    When I activated my virtual env and checked Python version with python3 -V, the console returned "Python 3.5.2". Even after I deactivated the virtual env and checked Python version again, I still get "Python 3.5.2". I never installed Python 3.5 in this Ubuntu system; everything I did to this system is listed above. I tried a few times with new Ubuntu instances and the virtual env changes my Python version to 3.5 every time. What's going on here? I really need Python 3.6.8.










    share|improve this question
























      0












      0








      0








      I am running an AWS EC2 Ubuntu 16.04 instance. I cannot get Python 3.6.8 working in virtualenv. Here is what I did after starting the Ubuntu instance:



      1) sudo apt-get update



      2) sudo apt-get upgrade



      3) Installed Python 3.6.8 according to instruction here: https://tecadmin.net/install-python-3-6-ubuntu-linuxmint/



      4) Verified installation with python3.6 -V (console returned "Python 3.6.8")



      5) Installed pip3 with sudo apt-get -y install python3-pip



      6) Installed virtualenv with sudo pip3 install virtualenv



      7) Upgraded pip3 with sudo -H pip3 install --upgrade pip



      8) Created virtualenv with virtualenv -p python3 venv



      When I activated my virtual env and checked Python version with python3 -V, the console returned "Python 3.5.2". Even after I deactivated the virtual env and checked Python version again, I still get "Python 3.5.2". I never installed Python 3.5 in this Ubuntu system; everything I did to this system is listed above. I tried a few times with new Ubuntu instances and the virtual env changes my Python version to 3.5 every time. What's going on here? I really need Python 3.6.8.










      share|improve this question














      I am running an AWS EC2 Ubuntu 16.04 instance. I cannot get Python 3.6.8 working in virtualenv. Here is what I did after starting the Ubuntu instance:



      1) sudo apt-get update



      2) sudo apt-get upgrade



      3) Installed Python 3.6.8 according to instruction here: https://tecadmin.net/install-python-3-6-ubuntu-linuxmint/



      4) Verified installation with python3.6 -V (console returned "Python 3.6.8")



      5) Installed pip3 with sudo apt-get -y install python3-pip



      6) Installed virtualenv with sudo pip3 install virtualenv



      7) Upgraded pip3 with sudo -H pip3 install --upgrade pip



      8) Created virtualenv with virtualenv -p python3 venv



      When I activated my virtual env and checked Python version with python3 -V, the console returned "Python 3.5.2". Even after I deactivated the virtual env and checked Python version again, I still get "Python 3.5.2". I never installed Python 3.5 in this Ubuntu system; everything I did to this system is listed above. I tried a few times with new Ubuntu instances and the virtual env changes my Python version to 3.5 every time. What's going on here? I really need Python 3.6.8.







      python-3.x virtualenv ubuntu-16.04






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 7 at 22:01









      Ashley LiuAshley Liu

      87111




      87111






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Looks like you need to create the virtualenv using the specific python version.



          virtualenv -p python3.6 venv


          I would verify this by exiting your virtualenv and then checking to see what python3 returns in the base environment



          python3 --version





          share|improve this answer






















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            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%2fstackoverflow.com%2fquestions%2f55053494%2fcannot-install-python-3-6-8-in-virtualenv-on-ubuntu-16-04%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Looks like you need to create the virtualenv using the specific python version.



            virtualenv -p python3.6 venv


            I would verify this by exiting your virtualenv and then checking to see what python3 returns in the base environment



            python3 --version





            share|improve this answer



























              0














              Looks like you need to create the virtualenv using the specific python version.



              virtualenv -p python3.6 venv


              I would verify this by exiting your virtualenv and then checking to see what python3 returns in the base environment



              python3 --version





              share|improve this answer

























                0












                0








                0







                Looks like you need to create the virtualenv using the specific python version.



                virtualenv -p python3.6 venv


                I would verify this by exiting your virtualenv and then checking to see what python3 returns in the base environment



                python3 --version





                share|improve this answer













                Looks like you need to create the virtualenv using the specific python version.



                virtualenv -p python3.6 venv


                I would verify this by exiting your virtualenv and then checking to see what python3 returns in the base environment



                python3 --version






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 8 at 0:06









                eddyizmeddyizm

                5417




                5417





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • 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%2fstackoverflow.com%2fquestions%2f55053494%2fcannot-install-python-3-6-8-in-virtualenv-on-ubuntu-16-04%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

                    Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

                    Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

                    2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived