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

                    Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

                    Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

                    How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page