Get “EnvironmentError: [Errno 13] Permission denied” error when trying to pip install any packageHow to upgrade pip to latest?installing ecdsaProblem with installing a python moduleI can't open software updater and unity tweak tool on Ubuntu14.04Python error “version OPENSSL_1.0.0 not defined in file libcrypto.so.1.0.0…” when trying to run command in PHP scrip (LAMPP)pip install gives “Command ”python setup.py egg_info“ failed with error code 1”Problem while installing pip for python 3.5 in ubuntu 16.04

What's the difference between jpg and JPG on mac?

Mostly One Way Travel : Says Grandpa

Why do right-wing parties generally oppose the legalization of marijuana?

What does the word "warmth" mean here?

Why isn't current carried through a vacuum?

Ball hits curve of same curvature

What's the best way to keep cover of a pan slightly opened?

Does a British citizen need a passport to fly to various "British" territories?

Can I weaken a coil spring consisting of spring steel?

What does 36.000€ mean?

Do insurance rates depend on credit scores?

What's that in front of the overhead panel?

A novel (or maybe a whole series) where a weird disease infects men and machines

How do oases form in the middle of the desert?

Can a creature of any alignment attune to this magic weapon in Curse of Strahd?

Brake disc and pads corrosion, do they need replacement?

What happens differently when ISS is inside this red boundary (Russia & Europe & ...)?

Why do Russian names transliterated into English have unpronounceable 'k's before 'h's (e.g. 'Mikhail' instead of just 'Mihail')?

Is this medieval picture of hanging 5 royals showing an historical event?

Is concept of entropy really indispensable? Especially when the concept of potential energy can serve the purpose?

Is gaining 1 AC in exchange for disadvantage on Perception checks a balanced trade?

What should I do about a new employee who didn't mention their second job or planned leave?

Is the decimation process time invariant?

What is the difference between scissors and shears?



Get “EnvironmentError: [Errno 13] Permission denied” error when trying to pip install any package


How to upgrade pip to latest?installing ecdsaProblem with installing a python moduleI can't open software updater and unity tweak tool on Ubuntu14.04Python error “version OPENSSL_1.0.0 not defined in file libcrypto.so.1.0.0…” when trying to run command in PHP scrip (LAMPP)pip install gives “Command ”python setup.py egg_info“ failed with error code 1”Problem while installing pip for python 3.5 in ubuntu 16.04






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









1


















When I try to pip install any package I'm getting this error:



Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 
'/usr/local/lib/python2.7/dist-packages/numpy'
Consider using the `--user` option or check the permissions.


When I try to sudo pip install anything I'm getting the following error.



Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
ImportError: cannot import name main
farzand@farzand-linux:~$









share|improve this question

































    1


















    When I try to pip install any package I'm getting this error:



    Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 
    '/usr/local/lib/python2.7/dist-packages/numpy'
    Consider using the `--user` option or check the permissions.


    When I try to sudo pip install anything I'm getting the following error.



    Traceback (most recent call last):
    File "/usr/bin/pip", line 9, in <module>
    from pip import main
    ImportError: cannot import name main
    farzand@farzand-linux:~$









    share|improve this question





























      1













      1









      1


      0






      When I try to pip install any package I'm getting this error:



      Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 
      '/usr/local/lib/python2.7/dist-packages/numpy'
      Consider using the `--user` option or check the permissions.


      When I try to sudo pip install anything I'm getting the following error.



      Traceback (most recent call last):
      File "/usr/bin/pip", line 9, in <module>
      from pip import main
      ImportError: cannot import name main
      farzand@farzand-linux:~$









      share|improve this question
















      When I try to pip install any package I'm getting this error:



      Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 
      '/usr/local/lib/python2.7/dist-packages/numpy'
      Consider using the `--user` option or check the permissions.


      When I try to sudo pip install anything I'm getting the following error.



      Traceback (most recent call last):
      File "/usr/bin/pip", line 9, in <module>
      from pip import main
      ImportError: cannot import name main
      farzand@farzand-linux:~$






      package-management permissions python pip






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 30 at 5:51









      karel

      71.6k15 gold badges160 silver badges186 bronze badges




      71.6k15 gold badges160 silver badges186 bronze badges










      asked Sep 28 at 12:42









      farzandfarzand

      154 bronze badges




      154 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          0



















          There are two different pip packages in Ubuntu 18.04: python-pip (for Python 2.x) and python3-pip (for Python 3.x). To install packages that are compatible with the default Python version in 18.04 you need to install python3-pip.



          sudo apt install python3-pip


          You can also install numpy with either:



          sudo apt install python3-numpy # for Python 3.x


          or



          sudo apt install python-numpy # for Python 2.x 


          Note the python- and python3- convention for prefacing package names of Python 2.x and Python 3.x packages in the default Ubuntu repositories.



          How to upgrade pip to latest version?






          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%2f1177280%2fget-environmenterror-errno-13-permission-denied-error-when-trying-to-pip-in%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



















            There are two different pip packages in Ubuntu 18.04: python-pip (for Python 2.x) and python3-pip (for Python 3.x). To install packages that are compatible with the default Python version in 18.04 you need to install python3-pip.



            sudo apt install python3-pip


            You can also install numpy with either:



            sudo apt install python3-numpy # for Python 3.x


            or



            sudo apt install python-numpy # for Python 2.x 


            Note the python- and python3- convention for prefacing package names of Python 2.x and Python 3.x packages in the default Ubuntu repositories.



            How to upgrade pip to latest version?






            share|improve this answer





























              0



















              There are two different pip packages in Ubuntu 18.04: python-pip (for Python 2.x) and python3-pip (for Python 3.x). To install packages that are compatible with the default Python version in 18.04 you need to install python3-pip.



              sudo apt install python3-pip


              You can also install numpy with either:



              sudo apt install python3-numpy # for Python 3.x


              or



              sudo apt install python-numpy # for Python 2.x 


              Note the python- and python3- convention for prefacing package names of Python 2.x and Python 3.x packages in the default Ubuntu repositories.



              How to upgrade pip to latest version?






              share|improve this answer



























                0















                0











                0









                There are two different pip packages in Ubuntu 18.04: python-pip (for Python 2.x) and python3-pip (for Python 3.x). To install packages that are compatible with the default Python version in 18.04 you need to install python3-pip.



                sudo apt install python3-pip


                You can also install numpy with either:



                sudo apt install python3-numpy # for Python 3.x


                or



                sudo apt install python-numpy # for Python 2.x 


                Note the python- and python3- convention for prefacing package names of Python 2.x and Python 3.x packages in the default Ubuntu repositories.



                How to upgrade pip to latest version?






                share|improve this answer














                There are two different pip packages in Ubuntu 18.04: python-pip (for Python 2.x) and python3-pip (for Python 3.x). To install packages that are compatible with the default Python version in 18.04 you need to install python3-pip.



                sudo apt install python3-pip


                You can also install numpy with either:



                sudo apt install python3-numpy # for Python 3.x


                or



                sudo apt install python-numpy # for Python 2.x 


                Note the python- and python3- convention for prefacing package names of Python 2.x and Python 3.x packages in the default Ubuntu repositories.



                How to upgrade pip to latest version?







                share|improve this answer













                share|improve this answer




                share|improve this answer










                answered Sep 28 at 14:22









                karelkarel

                71.6k15 gold badges160 silver badges186 bronze badges




                71.6k15 gold badges160 silver badges186 bronze badges































                    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%2f1177280%2fget-environmenterror-errno-13-permission-denied-error-when-trying-to-pip-in%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ü