Problem with pip package installation in virtualenv environment The Next CEO of Stack OverflowInstall virtualenv on Fedora 16pysqlite install error on FreeBSD in virtualenvupdating rst2pdf leads to pip uninstallhow to link pip to python3Where is pdfwriter.py located?dpkg returns error when installing python package (Debian)pip upgrade messed up python installationdebian9 can't install python packages with pip3 or uninstall packages with aptRHEL 6.8 installation of user specific python 3.7 completes with 'ModuleNotFoundError: No module named '_ctypes'I HAVE TRY EVERY THING WITH THIS PIP BROKEN PROBLEM

Is wanting to ask what to write an indication that you need to change your story?

Why isn't the Mueller report being released completely and unredacted?

Where do students learn to solve polynomial equations these days?

Does increasing your ability score affect your main stat?

Axiom Schema vs Axiom

Solving system of ODEs with extra parameter

RigExpert AA-35 - Interpreting The Information

Newlines in BSD sed vs gsed

Reference request: Grassmannian and Plucker coordinates in type B, C, D

Unclear about dynamic binding

Does soap repel water?

Is a distribution that is normal, but highly skewed considered Gaussian?

How many extra stops do monopods offer for tele photographs?

Why didn't Khan get resurrected in the Genesis Explosion?

Is micro rebar a better way to reinforce concrete than rebar?

Why doesn't UK go for the same deal Japan has with EU to resolve Brexit?

Why does the flight controls check come before arming the autobrake on the A320?

0 rank tensor vs 1D vector

If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?

Why isn't acceleration always zero whenever velocity is zero, such as the moment a ball bounces off a wall?

INSERT to a table from a database to other (same SQL Server) using Dynamic SQL

When you upcast Blindness/Deafness, do all targets suffer the same effect?

Is there a way to save my career from absolute disaster?

Proper way to express "He disappeared them"



Problem with pip package installation in virtualenv environment



The Next CEO of Stack OverflowInstall virtualenv on Fedora 16pysqlite install error on FreeBSD in virtualenvupdating rst2pdf leads to pip uninstallhow to link pip to python3Where is pdfwriter.py located?dpkg returns error when installing python package (Debian)pip upgrade messed up python installationdebian9 can't install python packages with pip3 or uninstall packages with aptRHEL 6.8 installation of user specific python 3.7 completes with 'ModuleNotFoundError: No module named '_ctypes'I HAVE TRY EVERY THING WITH THIS PIP BROKEN PROBLEM










1















After creating python virtual environment virtualenv -p python3 venv and activating it source venv/bin/activate, i am trying to install python packages using pip command-> pip install Flask which throws permission errors:



Could not install packages due to an EnvironmentError: [Errno 13] 
Permission denied: '/var/www/flask/apnisi/venv/lib/python3.5/site-packages/werkzeug'


After adding sudo to pip command sudo pip install Flask installation is successful; however, when i pip list installed packages it doesn't show newly installed ones.
What could be the problem?










share|improve this question









New contributor




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
























    1















    After creating python virtual environment virtualenv -p python3 venv and activating it source venv/bin/activate, i am trying to install python packages using pip command-> pip install Flask which throws permission errors:



    Could not install packages due to an EnvironmentError: [Errno 13] 
    Permission denied: '/var/www/flask/apnisi/venv/lib/python3.5/site-packages/werkzeug'


    After adding sudo to pip command sudo pip install Flask installation is successful; however, when i pip list installed packages it doesn't show newly installed ones.
    What could be the problem?










    share|improve this question









    New contributor




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






















      1












      1








      1








      After creating python virtual environment virtualenv -p python3 venv and activating it source venv/bin/activate, i am trying to install python packages using pip command-> pip install Flask which throws permission errors:



      Could not install packages due to an EnvironmentError: [Errno 13] 
      Permission denied: '/var/www/flask/apnisi/venv/lib/python3.5/site-packages/werkzeug'


      After adding sudo to pip command sudo pip install Flask installation is successful; however, when i pip list installed packages it doesn't show newly installed ones.
      What could be the problem?










      share|improve this question









      New contributor




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












      After creating python virtual environment virtualenv -p python3 venv and activating it source venv/bin/activate, i am trying to install python packages using pip command-> pip install Flask which throws permission errors:



      Could not install packages due to an EnvironmentError: [Errno 13] 
      Permission denied: '/var/www/flask/apnisi/venv/lib/python3.5/site-packages/werkzeug'


      After adding sudo to pip command sudo pip install Flask installation is successful; however, when i pip list installed packages it doesn't show newly installed ones.
      What could be the problem?







      debian python pip






      share|improve this question









      New contributor




      ussrback 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




      ussrback 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








      edited yesterday









      GAD3R

      27.7k1858114




      27.7k1858114






      New contributor




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









      asked 2 days ago









      ussrbackussrback

      202




      202




      New contributor




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





      New contributor





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






      ussrback 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














          You are likely encountering issues as it does not appear that you have "sourced" your environment correctly if what you have posted is accurate. I also recommend that you specify what version of python you are using to avoid issues with compatibility when you have both python2 and python3. If this is not the case, please edit your question and this answer can be removed or edited in turn.



          The basics of creating a python 3 virtual environment are:



          python3 -m venv /path/to/virtual/env
          source ./path/to/virtual/env/bin/activate


          You may need to install venv first (apt install python3-venv) and remember that your path and virtual environment itself has to be a place your user has permission to write to. At this point you should be in your virtual environment ((env) user@host:~$ _).



          You should not need sudo with pip. Using sudo with pip installs the package globally/system-wide. This pretty much defeats the purpose of your virtual environment which is to isolate a python environment for development and testing. Refer to official Python and the offending package documentation, if they do not install properly without sudo as it may mean you are missing a dependency or additional configurations in your virtual environment.



          On a Debian 9.8 system (Linux 4.9.0-8-amd64), running the above steps and then running the following yielded me these results:



          (env) user@host:~$ pip3 install flask
          (env) user@host:~$ pip3 list --format=legacy
          Click (7.0)
          Flask (1.0.2)
          itsdangerous (1.1.0)
          Jinja2 (2.10)
          MarkupSafe (1.1.1)
          pip (9.0.1)
          pkg-resources (0.0.0)
          setuptools (32.3.1)
          Wekzeug (0.15.1)
          (env) user@host:~$ python3 --version
          Python 3.5.3





          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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
            );



            );






            ussrback 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%2funix.stackexchange.com%2fquestions%2f509272%2fproblem-with-pip-package-installation-in-virtualenv-environment%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














            You are likely encountering issues as it does not appear that you have "sourced" your environment correctly if what you have posted is accurate. I also recommend that you specify what version of python you are using to avoid issues with compatibility when you have both python2 and python3. If this is not the case, please edit your question and this answer can be removed or edited in turn.



            The basics of creating a python 3 virtual environment are:



            python3 -m venv /path/to/virtual/env
            source ./path/to/virtual/env/bin/activate


            You may need to install venv first (apt install python3-venv) and remember that your path and virtual environment itself has to be a place your user has permission to write to. At this point you should be in your virtual environment ((env) user@host:~$ _).



            You should not need sudo with pip. Using sudo with pip installs the package globally/system-wide. This pretty much defeats the purpose of your virtual environment which is to isolate a python environment for development and testing. Refer to official Python and the offending package documentation, if they do not install properly without sudo as it may mean you are missing a dependency or additional configurations in your virtual environment.



            On a Debian 9.8 system (Linux 4.9.0-8-amd64), running the above steps and then running the following yielded me these results:



            (env) user@host:~$ pip3 install flask
            (env) user@host:~$ pip3 list --format=legacy
            Click (7.0)
            Flask (1.0.2)
            itsdangerous (1.1.0)
            Jinja2 (2.10)
            MarkupSafe (1.1.1)
            pip (9.0.1)
            pkg-resources (0.0.0)
            setuptools (32.3.1)
            Wekzeug (0.15.1)
            (env) user@host:~$ python3 --version
            Python 3.5.3





            share|improve this answer



























              1














              You are likely encountering issues as it does not appear that you have "sourced" your environment correctly if what you have posted is accurate. I also recommend that you specify what version of python you are using to avoid issues with compatibility when you have both python2 and python3. If this is not the case, please edit your question and this answer can be removed or edited in turn.



              The basics of creating a python 3 virtual environment are:



              python3 -m venv /path/to/virtual/env
              source ./path/to/virtual/env/bin/activate


              You may need to install venv first (apt install python3-venv) and remember that your path and virtual environment itself has to be a place your user has permission to write to. At this point you should be in your virtual environment ((env) user@host:~$ _).



              You should not need sudo with pip. Using sudo with pip installs the package globally/system-wide. This pretty much defeats the purpose of your virtual environment which is to isolate a python environment for development and testing. Refer to official Python and the offending package documentation, if they do not install properly without sudo as it may mean you are missing a dependency or additional configurations in your virtual environment.



              On a Debian 9.8 system (Linux 4.9.0-8-amd64), running the above steps and then running the following yielded me these results:



              (env) user@host:~$ pip3 install flask
              (env) user@host:~$ pip3 list --format=legacy
              Click (7.0)
              Flask (1.0.2)
              itsdangerous (1.1.0)
              Jinja2 (2.10)
              MarkupSafe (1.1.1)
              pip (9.0.1)
              pkg-resources (0.0.0)
              setuptools (32.3.1)
              Wekzeug (0.15.1)
              (env) user@host:~$ python3 --version
              Python 3.5.3





              share|improve this answer

























                1












                1








                1







                You are likely encountering issues as it does not appear that you have "sourced" your environment correctly if what you have posted is accurate. I also recommend that you specify what version of python you are using to avoid issues with compatibility when you have both python2 and python3. If this is not the case, please edit your question and this answer can be removed or edited in turn.



                The basics of creating a python 3 virtual environment are:



                python3 -m venv /path/to/virtual/env
                source ./path/to/virtual/env/bin/activate


                You may need to install venv first (apt install python3-venv) and remember that your path and virtual environment itself has to be a place your user has permission to write to. At this point you should be in your virtual environment ((env) user@host:~$ _).



                You should not need sudo with pip. Using sudo with pip installs the package globally/system-wide. This pretty much defeats the purpose of your virtual environment which is to isolate a python environment for development and testing. Refer to official Python and the offending package documentation, if they do not install properly without sudo as it may mean you are missing a dependency or additional configurations in your virtual environment.



                On a Debian 9.8 system (Linux 4.9.0-8-amd64), running the above steps and then running the following yielded me these results:



                (env) user@host:~$ pip3 install flask
                (env) user@host:~$ pip3 list --format=legacy
                Click (7.0)
                Flask (1.0.2)
                itsdangerous (1.1.0)
                Jinja2 (2.10)
                MarkupSafe (1.1.1)
                pip (9.0.1)
                pkg-resources (0.0.0)
                setuptools (32.3.1)
                Wekzeug (0.15.1)
                (env) user@host:~$ python3 --version
                Python 3.5.3





                share|improve this answer













                You are likely encountering issues as it does not appear that you have "sourced" your environment correctly if what you have posted is accurate. I also recommend that you specify what version of python you are using to avoid issues with compatibility when you have both python2 and python3. If this is not the case, please edit your question and this answer can be removed or edited in turn.



                The basics of creating a python 3 virtual environment are:



                python3 -m venv /path/to/virtual/env
                source ./path/to/virtual/env/bin/activate


                You may need to install venv first (apt install python3-venv) and remember that your path and virtual environment itself has to be a place your user has permission to write to. At this point you should be in your virtual environment ((env) user@host:~$ _).



                You should not need sudo with pip. Using sudo with pip installs the package globally/system-wide. This pretty much defeats the purpose of your virtual environment which is to isolate a python environment for development and testing. Refer to official Python and the offending package documentation, if they do not install properly without sudo as it may mean you are missing a dependency or additional configurations in your virtual environment.



                On a Debian 9.8 system (Linux 4.9.0-8-amd64), running the above steps and then running the following yielded me these results:



                (env) user@host:~$ pip3 install flask
                (env) user@host:~$ pip3 list --format=legacy
                Click (7.0)
                Flask (1.0.2)
                itsdangerous (1.1.0)
                Jinja2 (2.10)
                MarkupSafe (1.1.1)
                pip (9.0.1)
                pkg-resources (0.0.0)
                setuptools (32.3.1)
                Wekzeug (0.15.1)
                (env) user@host:~$ python3 --version
                Python 3.5.3






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 2 days ago









                kemotepkemotep

                2,6983823




                2,6983823




















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









                    draft saved

                    draft discarded


















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












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











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














                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • 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%2funix.stackexchange.com%2fquestions%2f509272%2fproblem-with-pip-package-installation-in-virtualenv-environment%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

                    getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

                    Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

                    Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.