Virtualenv Python versionubuntu not able to recognise python commandhow to remove the old of python 3.x and keep the latest pyhon 3.xAccess python os.environ var in virtualenv with sudo?

Does any country have free college & open admissions?

My mysterious "ruins" wander around and change on their own, what'd be a rational way for them to do that?

Identify the Eeveelutions

Grep over multiple files redirecting to a different filename each time

How do I find the unknown program enabled during Start-Up?

Would nuclear bombs be effective against clouds of nanites?

Does SQL Server Only Perform Calculations In A SELECT List Once?

Which act of Congress authorized the Ukrainian aid which was allegedly withheld?

Does milk make your bones stronger?

I have stack-exchanged through my undergrad math program. Am I likely to succeed in mathematics PhD programs?

Is policy routing bad?

Why do aircraft sometimes bounce while landing?

My boss wants me to recreate everything I have done for my previous employer

What is the lowest level at which a human can beat the 100m world record (or: the presumed human limit) without using magic?

What's the name of the role of characters who buff teammates?

A variation on Caesar

Unexpected Code Coverage Reduction

Dicht antonym - what is it?

What does the 1.-5. notation mean at the top right corner?

Prevent sleep if CPU usage is high

Find the Longest Even Length Word

On a naked chicken (no coating,batter) is there any benefit of double frying?

Is current (November 2019) polling about Democrats lead over Trump trustworthy?

Can I request a credit item be removed from my report as soon as it is paid in full?



Virtualenv Python version


ubuntu not able to recognise python commandhow to remove the old of python 3.x and keep the latest pyhon 3.xAccess python os.environ var in virtualenv with sudo?






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









0

















I have Python3.5.2 by default on my Ubuntu System. I recently installed Python3.5.4. When I run python3 --version it outputs 3.5.2 and when I run python3.5 it shows 3.5.4.



I want my project to use Python3.5.4 so I created a virtualenv inside my project using virtualenv -p /usr/bin/python3.5 venv



What command can I use to verify that my project directory is using Python3.5.4?










share|improve this question




























  • How did you install Python 3.5.4 and where is it installed? Could you edit and add the output of type -a python3 python3.5?

    – wjandrea
    Jul 24 at 17:06











  • I installed using $wget python.org/ftp/python/3.5.4/Python-3.5.4.tar.xz. When I do $which python3.5 it outputs usr/local/bin/python3.5. When I created the virtualenv the output was Running virtualenv with interpreter /usr/bin/python3.5 Using base prefix '/usr' New python executable in /home/aishwarya/rnn/venv/bin/python3.5 Also creating executable in /home/aishwarya/rnn/venv/bin/python Installing setuptools, pip, wheel... done.

    – Aishwarya Pothula
    Jul 24 at 17:13












  • Ah ok, I don't think that's a recommended setup, but I also don't think it will cause any problems. In any case, please edit and add the output of type -a python3 python3.5.

    – wjandrea
    Jul 24 at 17:20

















0

















I have Python3.5.2 by default on my Ubuntu System. I recently installed Python3.5.4. When I run python3 --version it outputs 3.5.2 and when I run python3.5 it shows 3.5.4.



I want my project to use Python3.5.4 so I created a virtualenv inside my project using virtualenv -p /usr/bin/python3.5 venv



What command can I use to verify that my project directory is using Python3.5.4?










share|improve this question




























  • How did you install Python 3.5.4 and where is it installed? Could you edit and add the output of type -a python3 python3.5?

    – wjandrea
    Jul 24 at 17:06











  • I installed using $wget python.org/ftp/python/3.5.4/Python-3.5.4.tar.xz. When I do $which python3.5 it outputs usr/local/bin/python3.5. When I created the virtualenv the output was Running virtualenv with interpreter /usr/bin/python3.5 Using base prefix '/usr' New python executable in /home/aishwarya/rnn/venv/bin/python3.5 Also creating executable in /home/aishwarya/rnn/venv/bin/python Installing setuptools, pip, wheel... done.

    – Aishwarya Pothula
    Jul 24 at 17:13












  • Ah ok, I don't think that's a recommended setup, but I also don't think it will cause any problems. In any case, please edit and add the output of type -a python3 python3.5.

    – wjandrea
    Jul 24 at 17:20













0












0








0








I have Python3.5.2 by default on my Ubuntu System. I recently installed Python3.5.4. When I run python3 --version it outputs 3.5.2 and when I run python3.5 it shows 3.5.4.



I want my project to use Python3.5.4 so I created a virtualenv inside my project using virtualenv -p /usr/bin/python3.5 venv



What command can I use to verify that my project directory is using Python3.5.4?










share|improve this question

















I have Python3.5.2 by default on my Ubuntu System. I recently installed Python3.5.4. When I run python3 --version it outputs 3.5.2 and when I run python3.5 it shows 3.5.4.



I want my project to use Python3.5.4 so I created a virtualenv inside my project using virtualenv -p /usr/bin/python3.5 venv



What command can I use to verify that my project directory is using Python3.5.4?







python python3 virtualenv






share|improve this question
















share|improve this question













share|improve this question




share|improve this question








edited Jul 24 at 17:04









wjandrea

10.4k4 gold badges33 silver badges70 bronze badges




10.4k4 gold badges33 silver badges70 bronze badges










asked Jul 24 at 16:43









Aishwarya PothulaAishwarya Pothula

1




1















  • How did you install Python 3.5.4 and where is it installed? Could you edit and add the output of type -a python3 python3.5?

    – wjandrea
    Jul 24 at 17:06











  • I installed using $wget python.org/ftp/python/3.5.4/Python-3.5.4.tar.xz. When I do $which python3.5 it outputs usr/local/bin/python3.5. When I created the virtualenv the output was Running virtualenv with interpreter /usr/bin/python3.5 Using base prefix '/usr' New python executable in /home/aishwarya/rnn/venv/bin/python3.5 Also creating executable in /home/aishwarya/rnn/venv/bin/python Installing setuptools, pip, wheel... done.

    – Aishwarya Pothula
    Jul 24 at 17:13












  • Ah ok, I don't think that's a recommended setup, but I also don't think it will cause any problems. In any case, please edit and add the output of type -a python3 python3.5.

    – wjandrea
    Jul 24 at 17:20

















  • How did you install Python 3.5.4 and where is it installed? Could you edit and add the output of type -a python3 python3.5?

    – wjandrea
    Jul 24 at 17:06











  • I installed using $wget python.org/ftp/python/3.5.4/Python-3.5.4.tar.xz. When I do $which python3.5 it outputs usr/local/bin/python3.5. When I created the virtualenv the output was Running virtualenv with interpreter /usr/bin/python3.5 Using base prefix '/usr' New python executable in /home/aishwarya/rnn/venv/bin/python3.5 Also creating executable in /home/aishwarya/rnn/venv/bin/python Installing setuptools, pip, wheel... done.

    – Aishwarya Pothula
    Jul 24 at 17:13












  • Ah ok, I don't think that's a recommended setup, but I also don't think it will cause any problems. In any case, please edit and add the output of type -a python3 python3.5.

    – wjandrea
    Jul 24 at 17:20
















How did you install Python 3.5.4 and where is it installed? Could you edit and add the output of type -a python3 python3.5?

– wjandrea
Jul 24 at 17:06





How did you install Python 3.5.4 and where is it installed? Could you edit and add the output of type -a python3 python3.5?

– wjandrea
Jul 24 at 17:06













I installed using $wget python.org/ftp/python/3.5.4/Python-3.5.4.tar.xz. When I do $which python3.5 it outputs usr/local/bin/python3.5. When I created the virtualenv the output was Running virtualenv with interpreter /usr/bin/python3.5 Using base prefix '/usr' New python executable in /home/aishwarya/rnn/venv/bin/python3.5 Also creating executable in /home/aishwarya/rnn/venv/bin/python Installing setuptools, pip, wheel... done.

– Aishwarya Pothula
Jul 24 at 17:13






I installed using $wget python.org/ftp/python/3.5.4/Python-3.5.4.tar.xz. When I do $which python3.5 it outputs usr/local/bin/python3.5. When I created the virtualenv the output was Running virtualenv with interpreter /usr/bin/python3.5 Using base prefix '/usr' New python executable in /home/aishwarya/rnn/venv/bin/python3.5 Also creating executable in /home/aishwarya/rnn/venv/bin/python Installing setuptools, pip, wheel... done.

– Aishwarya Pothula
Jul 24 at 17:13














Ah ok, I don't think that's a recommended setup, but I also don't think it will cause any problems. In any case, please edit and add the output of type -a python3 python3.5.

– wjandrea
Jul 24 at 17:20





Ah ok, I don't think that's a recommended setup, but I also don't think it will cause any problems. In any case, please edit and add the output of type -a python3 python3.5.

– wjandrea
Jul 24 at 17:20










2 Answers
2






active

oldest

votes


















0


















Your virtualenv's python binary is symlinked at venv/bin/python, so simply run



venv/bin/python --version


However, if python3 is 3.5.2, /usr/bin/python3.5 should be 3.5.2, so I don't think you'll get the result you want (3.5.4). You'll probably need to rebuild the virtualenv with /usr/local/bin/python3.5 as the interpreter.






share|improve this answer





















  • 1





    thank you. I did just that. Works fine

    – Aishwarya Pothula
    Jul 24 at 17:29


















0


















I found the answer. My Python3.5.4 got installed in usr/local/bin. So I should have created a virtualenv with this path. $virtualenv -p /usr/local/bin/python3.5.



To check what version my project is using I activated venv using $source ven/bin/activate and then typed in $python. It gives the following output. It is using Python3.5.4



Python 3.5.4 (default, Jul 24 2019, 10:56:54)
[GCC 5.4.0 20160609] on linux






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/4.0/"u003ecc by-sa 4.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%2f1160762%2fvirtualenv-python-version%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









    0


















    Your virtualenv's python binary is symlinked at venv/bin/python, so simply run



    venv/bin/python --version


    However, if python3 is 3.5.2, /usr/bin/python3.5 should be 3.5.2, so I don't think you'll get the result you want (3.5.4). You'll probably need to rebuild the virtualenv with /usr/local/bin/python3.5 as the interpreter.






    share|improve this answer





















    • 1





      thank you. I did just that. Works fine

      – Aishwarya Pothula
      Jul 24 at 17:29















    0


















    Your virtualenv's python binary is symlinked at venv/bin/python, so simply run



    venv/bin/python --version


    However, if python3 is 3.5.2, /usr/bin/python3.5 should be 3.5.2, so I don't think you'll get the result you want (3.5.4). You'll probably need to rebuild the virtualenv with /usr/local/bin/python3.5 as the interpreter.






    share|improve this answer





















    • 1





      thank you. I did just that. Works fine

      – Aishwarya Pothula
      Jul 24 at 17:29













    0














    0










    0









    Your virtualenv's python binary is symlinked at venv/bin/python, so simply run



    venv/bin/python --version


    However, if python3 is 3.5.2, /usr/bin/python3.5 should be 3.5.2, so I don't think you'll get the result you want (3.5.4). You'll probably need to rebuild the virtualenv with /usr/local/bin/python3.5 as the interpreter.






    share|improve this answer














    Your virtualenv's python binary is symlinked at venv/bin/python, so simply run



    venv/bin/python --version


    However, if python3 is 3.5.2, /usr/bin/python3.5 should be 3.5.2, so I don't think you'll get the result you want (3.5.4). You'll probably need to rebuild the virtualenv with /usr/local/bin/python3.5 as the interpreter.







    share|improve this answer













    share|improve this answer




    share|improve this answer










    answered Jul 24 at 17:22









    wjandreawjandrea

    10.4k4 gold badges33 silver badges70 bronze badges




    10.4k4 gold badges33 silver badges70 bronze badges










    • 1





      thank you. I did just that. Works fine

      – Aishwarya Pothula
      Jul 24 at 17:29












    • 1





      thank you. I did just that. Works fine

      – Aishwarya Pothula
      Jul 24 at 17:29







    1




    1





    thank you. I did just that. Works fine

    – Aishwarya Pothula
    Jul 24 at 17:29





    thank you. I did just that. Works fine

    – Aishwarya Pothula
    Jul 24 at 17:29













    0


















    I found the answer. My Python3.5.4 got installed in usr/local/bin. So I should have created a virtualenv with this path. $virtualenv -p /usr/local/bin/python3.5.



    To check what version my project is using I activated venv using $source ven/bin/activate and then typed in $python. It gives the following output. It is using Python3.5.4



    Python 3.5.4 (default, Jul 24 2019, 10:56:54)
    [GCC 5.4.0 20160609] on linux






    share|improve this answer






























      0


















      I found the answer. My Python3.5.4 got installed in usr/local/bin. So I should have created a virtualenv with this path. $virtualenv -p /usr/local/bin/python3.5.



      To check what version my project is using I activated venv using $source ven/bin/activate and then typed in $python. It gives the following output. It is using Python3.5.4



      Python 3.5.4 (default, Jul 24 2019, 10:56:54)
      [GCC 5.4.0 20160609] on linux






      share|improve this answer




























        0














        0










        0









        I found the answer. My Python3.5.4 got installed in usr/local/bin. So I should have created a virtualenv with this path. $virtualenv -p /usr/local/bin/python3.5.



        To check what version my project is using I activated venv using $source ven/bin/activate and then typed in $python. It gives the following output. It is using Python3.5.4



        Python 3.5.4 (default, Jul 24 2019, 10:56:54)
        [GCC 5.4.0 20160609] on linux






        share|improve this answer














        I found the answer. My Python3.5.4 got installed in usr/local/bin. So I should have created a virtualenv with this path. $virtualenv -p /usr/local/bin/python3.5.



        To check what version my project is using I activated venv using $source ven/bin/activate and then typed in $python. It gives the following output. It is using Python3.5.4



        Python 3.5.4 (default, Jul 24 2019, 10:56:54)
        [GCC 5.4.0 20160609] on linux







        share|improve this answer













        share|improve this answer




        share|improve this answer










        answered Jul 24 at 17:27









        Aishwarya PothulaAishwarya Pothula

        1




        1































            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%2f1160762%2fvirtualenv-python-version%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

            Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

            How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region

            Genealogie vun de Merowenger Vum Merowech bis zum Chilperich I. | Navigatiounsmenü