Using apt-get or pip version of virtualenv and numpy












0















So I am pretty new to Ubuntu and Python, so apologies if this is a stupid question. I have been consulting this question on what package manager to use for Python apt-get install vs pip install



and



https://stackoverflow.com/questions/49836676/error-after-upgrading-pip-cannot-import-name-main



seem to suggest that I not use pip to manage the packages on a global level. I should do any updates/installation to packages through apt unless a package is not there in Canonical's distribution. From what I understand, if I want to use a updated package for one project than the one in Ubuntu/Canonical's repository, I should use pip inside of a Virtual Environment. But how should I install virtualenv itself?



Now I have a few questions:



1) Should I use apt to get virtualenv or use pip considering that virtualenv seems to have gone significant upgrades from version 15 to 16 based on a glance at the release notes



2) Considering that Canonical often doesn't have the updated versions of Python packages or software, for a person who is a beginner at programming/development, how important is it to use the latest and newest releases of packages?



3) Is it application specific?



4) Specifically, in the case of numpy and virtualenv, is it useful for a beginner to have the latest version or can a slightly older version (e.g. numpy version 1.13 vs 1.16) work because Canonical seems to install version 1.13?










share|improve this question







New contributor




user278039 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    So I am pretty new to Ubuntu and Python, so apologies if this is a stupid question. I have been consulting this question on what package manager to use for Python apt-get install vs pip install



    and



    https://stackoverflow.com/questions/49836676/error-after-upgrading-pip-cannot-import-name-main



    seem to suggest that I not use pip to manage the packages on a global level. I should do any updates/installation to packages through apt unless a package is not there in Canonical's distribution. From what I understand, if I want to use a updated package for one project than the one in Ubuntu/Canonical's repository, I should use pip inside of a Virtual Environment. But how should I install virtualenv itself?



    Now I have a few questions:



    1) Should I use apt to get virtualenv or use pip considering that virtualenv seems to have gone significant upgrades from version 15 to 16 based on a glance at the release notes



    2) Considering that Canonical often doesn't have the updated versions of Python packages or software, for a person who is a beginner at programming/development, how important is it to use the latest and newest releases of packages?



    3) Is it application specific?



    4) Specifically, in the case of numpy and virtualenv, is it useful for a beginner to have the latest version or can a slightly older version (e.g. numpy version 1.13 vs 1.16) work because Canonical seems to install version 1.13?










    share|improve this question







    New contributor




    user278039 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      So I am pretty new to Ubuntu and Python, so apologies if this is a stupid question. I have been consulting this question on what package manager to use for Python apt-get install vs pip install



      and



      https://stackoverflow.com/questions/49836676/error-after-upgrading-pip-cannot-import-name-main



      seem to suggest that I not use pip to manage the packages on a global level. I should do any updates/installation to packages through apt unless a package is not there in Canonical's distribution. From what I understand, if I want to use a updated package for one project than the one in Ubuntu/Canonical's repository, I should use pip inside of a Virtual Environment. But how should I install virtualenv itself?



      Now I have a few questions:



      1) Should I use apt to get virtualenv or use pip considering that virtualenv seems to have gone significant upgrades from version 15 to 16 based on a glance at the release notes



      2) Considering that Canonical often doesn't have the updated versions of Python packages or software, for a person who is a beginner at programming/development, how important is it to use the latest and newest releases of packages?



      3) Is it application specific?



      4) Specifically, in the case of numpy and virtualenv, is it useful for a beginner to have the latest version or can a slightly older version (e.g. numpy version 1.13 vs 1.16) work because Canonical seems to install version 1.13?










      share|improve this question







      New contributor




      user278039 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      So I am pretty new to Ubuntu and Python, so apologies if this is a stupid question. I have been consulting this question on what package manager to use for Python apt-get install vs pip install



      and



      https://stackoverflow.com/questions/49836676/error-after-upgrading-pip-cannot-import-name-main



      seem to suggest that I not use pip to manage the packages on a global level. I should do any updates/installation to packages through apt unless a package is not there in Canonical's distribution. From what I understand, if I want to use a updated package for one project than the one in Ubuntu/Canonical's repository, I should use pip inside of a Virtual Environment. But how should I install virtualenv itself?



      Now I have a few questions:



      1) Should I use apt to get virtualenv or use pip considering that virtualenv seems to have gone significant upgrades from version 15 to 16 based on a glance at the release notes



      2) Considering that Canonical often doesn't have the updated versions of Python packages or software, for a person who is a beginner at programming/development, how important is it to use the latest and newest releases of packages?



      3) Is it application specific?



      4) Specifically, in the case of numpy and virtualenv, is it useful for a beginner to have the latest version or can a slightly older version (e.g. numpy version 1.13 vs 1.16) work because Canonical seems to install version 1.13?







      package-management python






      share|improve this question







      New contributor




      user278039 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      user278039 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      user278039 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Mar 12 at 7:46









      user278039user278039

      1032




      1032




      New contributor




      user278039 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      user278039 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      user278039 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          1














          Please try to stick to one question in posts, you will get better answers that way.



          There is no rule saying you can't use both apt and pip in conjunction you just run a much higher risk of running into Dependency Hell



          1.) I would suggest using apt for as much package management as you can, and if you find you need some obscure python lib apt doesn't supply, either use pip or install from source (I would install from source, but to each his own).



          If you do decide to use pip as it will likely be easier, I would just keep a list of what is installed with pip.



          2.) It depends on your end goal. I intro programming (amongst other more interesting classes) at a major university for 2 years and I really didn't care how "up to date" all their libraries were as I was teaching vanilla python (python 3.6). In any event though, I would say that up to date libraries aren't essential for new programmers (barring you're not using some library as old as your grandfather) as the fundamentals of programming seem to be agnostic of versions.



          3.) Is what application specific?



          4.) See 2






          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
            });


            }
            });






            user278039 is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1124964%2fusing-apt-get-or-pip-version-of-virtualenv-and-numpy%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









            1














            Please try to stick to one question in posts, you will get better answers that way.



            There is no rule saying you can't use both apt and pip in conjunction you just run a much higher risk of running into Dependency Hell



            1.) I would suggest using apt for as much package management as you can, and if you find you need some obscure python lib apt doesn't supply, either use pip or install from source (I would install from source, but to each his own).



            If you do decide to use pip as it will likely be easier, I would just keep a list of what is installed with pip.



            2.) It depends on your end goal. I intro programming (amongst other more interesting classes) at a major university for 2 years and I really didn't care how "up to date" all their libraries were as I was teaching vanilla python (python 3.6). In any event though, I would say that up to date libraries aren't essential for new programmers (barring you're not using some library as old as your grandfather) as the fundamentals of programming seem to be agnostic of versions.



            3.) Is what application specific?



            4.) See 2






            share|improve this answer




























              1














              Please try to stick to one question in posts, you will get better answers that way.



              There is no rule saying you can't use both apt and pip in conjunction you just run a much higher risk of running into Dependency Hell



              1.) I would suggest using apt for as much package management as you can, and if you find you need some obscure python lib apt doesn't supply, either use pip or install from source (I would install from source, but to each his own).



              If you do decide to use pip as it will likely be easier, I would just keep a list of what is installed with pip.



              2.) It depends on your end goal. I intro programming (amongst other more interesting classes) at a major university for 2 years and I really didn't care how "up to date" all their libraries were as I was teaching vanilla python (python 3.6). In any event though, I would say that up to date libraries aren't essential for new programmers (barring you're not using some library as old as your grandfather) as the fundamentals of programming seem to be agnostic of versions.



              3.) Is what application specific?



              4.) See 2






              share|improve this answer


























                1












                1








                1







                Please try to stick to one question in posts, you will get better answers that way.



                There is no rule saying you can't use both apt and pip in conjunction you just run a much higher risk of running into Dependency Hell



                1.) I would suggest using apt for as much package management as you can, and if you find you need some obscure python lib apt doesn't supply, either use pip or install from source (I would install from source, but to each his own).



                If you do decide to use pip as it will likely be easier, I would just keep a list of what is installed with pip.



                2.) It depends on your end goal. I intro programming (amongst other more interesting classes) at a major university for 2 years and I really didn't care how "up to date" all their libraries were as I was teaching vanilla python (python 3.6). In any event though, I would say that up to date libraries aren't essential for new programmers (barring you're not using some library as old as your grandfather) as the fundamentals of programming seem to be agnostic of versions.



                3.) Is what application specific?



                4.) See 2






                share|improve this answer













                Please try to stick to one question in posts, you will get better answers that way.



                There is no rule saying you can't use both apt and pip in conjunction you just run a much higher risk of running into Dependency Hell



                1.) I would suggest using apt for as much package management as you can, and if you find you need some obscure python lib apt doesn't supply, either use pip or install from source (I would install from source, but to each his own).



                If you do decide to use pip as it will likely be easier, I would just keep a list of what is installed with pip.



                2.) It depends on your end goal. I intro programming (amongst other more interesting classes) at a major university for 2 years and I really didn't care how "up to date" all their libraries were as I was teaching vanilla python (python 3.6). In any event though, I would say that up to date libraries aren't essential for new programmers (barring you're not using some library as old as your grandfather) as the fundamentals of programming seem to be agnostic of versions.



                3.) Is what application specific?



                4.) See 2







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 12 at 9:50









                j-moneyj-money

                1,221418




                1,221418






















                    user278039 is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded


















                    user278039 is a new contributor. Be nice, and check out our Code of Conduct.













                    user278039 is a new contributor. Be nice, and check out our Code of Conduct.












                    user278039 is a new contributor. Be nice, and check out our Code of Conduct.
















                    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%2f1124964%2fusing-apt-get-or-pip-version-of-virtualenv-and-numpy%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

                    How did Captain America manage to do this?

                    迪纳利

                    南乌拉尔铁路局