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
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
debian python pip
New contributor
New contributor
edited yesterday
GAD3R
27.7k1858114
27.7k1858114
New contributor
asked 2 days ago
ussrbackussrback
202
202
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered 2 days ago
kemotepkemotep
2,6983823
2,6983823
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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