Uninstall virtualenv which was installed through sudo pip The Next CEO of Stack...
How does the mv command work with external drives?
What is the purpose of the Evocation wizard's Potent Cantrip feature?
How do scammers retract money, while you can’t?
What does convergence in distribution "in the Gromov–Hausdorff" sense mean?
Which tube will fit a -(700 x 25c) wheel?
Why didn't Khan get resurrected in the Genesis Explosion?
How to start emacs in "nothing" mode (`fundamental-mode`)
I believe this to be a fraud - hired, then asked to cash check and send cash as Bitcoin
Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis
Return the Closest Prime Number
What flight has the highest ratio of time difference to flight time?
Why does the UK parliament need a vote on the political declaration?
Are there any limitations on attacking while grappling?
Is it ever safe to open a suspicious html file (e.g. email attachment)?
If/When UK leaves the EU, can a future goverment conduct a referendum to join the EU?
How fast would a person need to move to trick the eye?
Workaholic Formal/Informal
Why do professional authors make "consistency" mistakes? And how to avoid them?
Inappropriate reference requests from Journal reviewers
Make solar eclipses exceedingly rare, but still have new moons
What exact does MIB represent in SNMP? How is it different from OID?
Why am I allowed to create multiple unique pointers from a single object?
Preparing Indesign booklet with .psd graphics for print
Is there an analogue of projective spaces for proper schemes?
Uninstall virtualenv which was installed through sudo pip
The Next CEO of Stack OverflowInstallation issues for Virtualenv and VirtualenvWrapper in 13.04preventing pip from removing system packages during upgradeHow to install python as a userStill having the version 2.7 after install the version 3.6 of pythonwhy sudo -H pip -V differs from pip -VHow to update pip3 sub-version?Ubuntu PIP Installs Packages Globally Instead of Inside VirtualEnvHow do I uninstall all user installed python and pip versions?Problem in installing pip in Ubuntu 16.04Where should pygame be installed by pip? /usr/lib or ~/.local/lib?
***********Update2******************
Tried and successfully created a virtual environment using virtualenv.
[08:05 USER@system ~] > mkdir test_virtual
[08:05 USER@system ~] > virtualenv test_virtual/
New python executable in /home/USER/test_virtual/bin/python
Installing setuptools, pip, wheel...done.
[08:05 USER@system ~] > ls test_virtual/
bin include lib local pip-selfcheck.json
***********Update1******************
As requested here are the pastebin links to pip list and pip3 list.
***********Original******************
I installed virtualenv using sudo pip install virtualenv, which after reading on several answers here is actually not a good practice. When I try to uninstall it (mainly because I'm planning to go the anaconda way and I don't like extra dirt that I don't use on my system) I get the following error:
(09:20 USER@system ~) > sudo pip uninstall virtualenv
The directory '/home/USER/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled.
Please check the permissions and owner of that directory.
If executing pip with sudo, you may want sudo's -H flag.
Cannot uninstall requirement virtualenv, not installed
The directory '/home/USER/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled.
Please check the permissions and owner of that directory.
If executing pip with sudo, you may want sudo's -H flag.
When I use sudo -H flag, I get this:
Cannot uninstall requirement virtualenv, not installed
But I confirmed that virtualenv is still installed:
(09:25 USER@system ~) > which virtualenv
virtualenv is /usr/local/bin/virtualenv
virtualenv is /usr/local/bin/virtualenv
virtualenv is /usr/local/bin/virtualenv
virtualenv is /usr/local/bin/virtualenv
How do I uninstall virtualenv from my system?
Thanks.
14.04 package-management python
|
show 2 more comments
***********Update2******************
Tried and successfully created a virtual environment using virtualenv.
[08:05 USER@system ~] > mkdir test_virtual
[08:05 USER@system ~] > virtualenv test_virtual/
New python executable in /home/USER/test_virtual/bin/python
Installing setuptools, pip, wheel...done.
[08:05 USER@system ~] > ls test_virtual/
bin include lib local pip-selfcheck.json
***********Update1******************
As requested here are the pastebin links to pip list and pip3 list.
***********Original******************
I installed virtualenv using sudo pip install virtualenv, which after reading on several answers here is actually not a good practice. When I try to uninstall it (mainly because I'm planning to go the anaconda way and I don't like extra dirt that I don't use on my system) I get the following error:
(09:20 USER@system ~) > sudo pip uninstall virtualenv
The directory '/home/USER/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled.
Please check the permissions and owner of that directory.
If executing pip with sudo, you may want sudo's -H flag.
Cannot uninstall requirement virtualenv, not installed
The directory '/home/USER/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled.
Please check the permissions and owner of that directory.
If executing pip with sudo, you may want sudo's -H flag.
When I use sudo -H flag, I get this:
Cannot uninstall requirement virtualenv, not installed
But I confirmed that virtualenv is still installed:
(09:25 USER@system ~) > which virtualenv
virtualenv is /usr/local/bin/virtualenv
virtualenv is /usr/local/bin/virtualenv
virtualenv is /usr/local/bin/virtualenv
virtualenv is /usr/local/bin/virtualenv
How do I uninstall virtualenv from my system?
Thanks.
14.04 package-management python
I've removed them.
– shaun
Jul 29 '16 at 15:52
Are you sure you installedvirtualenvusingsudo pip install virtualenvinstead ofsudo pip3 install virtualenv? Can you dosudo pip listandsudo pip3 list?
– edwinksl
Jul 30 '16 at 5:36
I did those commands. They spit out a bunch of package names and at the end of the list the same error that says "the directory /home/USER/.cache/pip/http or its parent directory..." was also displayed for both pip and pip3. Also when I grep'd the list for virtualenv (using both virtual as the pattern and env as a the pattern) I didn't get any output except the error.
– shaun
Jul 30 '16 at 21:32
Can you put those outputs into your question or put them into a pastebin and link the pastebin? We are going to need more information than what you have given so far to figure out what happened.
– edwinksl
Jul 30 '16 at 21:37
Hmm, sopip listandpip3 listdon't havevirtualenv, which is at least consistent with the "Cannot uninstall requirement virtualenv, not installed" error message. If you just try to runvirtualenv, are you able to create virtual environments?
– edwinksl
Jul 31 '16 at 5:18
|
show 2 more comments
***********Update2******************
Tried and successfully created a virtual environment using virtualenv.
[08:05 USER@system ~] > mkdir test_virtual
[08:05 USER@system ~] > virtualenv test_virtual/
New python executable in /home/USER/test_virtual/bin/python
Installing setuptools, pip, wheel...done.
[08:05 USER@system ~] > ls test_virtual/
bin include lib local pip-selfcheck.json
***********Update1******************
As requested here are the pastebin links to pip list and pip3 list.
***********Original******************
I installed virtualenv using sudo pip install virtualenv, which after reading on several answers here is actually not a good practice. When I try to uninstall it (mainly because I'm planning to go the anaconda way and I don't like extra dirt that I don't use on my system) I get the following error:
(09:20 USER@system ~) > sudo pip uninstall virtualenv
The directory '/home/USER/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled.
Please check the permissions and owner of that directory.
If executing pip with sudo, you may want sudo's -H flag.
Cannot uninstall requirement virtualenv, not installed
The directory '/home/USER/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled.
Please check the permissions and owner of that directory.
If executing pip with sudo, you may want sudo's -H flag.
When I use sudo -H flag, I get this:
Cannot uninstall requirement virtualenv, not installed
But I confirmed that virtualenv is still installed:
(09:25 USER@system ~) > which virtualenv
virtualenv is /usr/local/bin/virtualenv
virtualenv is /usr/local/bin/virtualenv
virtualenv is /usr/local/bin/virtualenv
virtualenv is /usr/local/bin/virtualenv
How do I uninstall virtualenv from my system?
Thanks.
14.04 package-management python
***********Update2******************
Tried and successfully created a virtual environment using virtualenv.
[08:05 USER@system ~] > mkdir test_virtual
[08:05 USER@system ~] > virtualenv test_virtual/
New python executable in /home/USER/test_virtual/bin/python
Installing setuptools, pip, wheel...done.
[08:05 USER@system ~] > ls test_virtual/
bin include lib local pip-selfcheck.json
***********Update1******************
As requested here are the pastebin links to pip list and pip3 list.
***********Original******************
I installed virtualenv using sudo pip install virtualenv, which after reading on several answers here is actually not a good practice. When I try to uninstall it (mainly because I'm planning to go the anaconda way and I don't like extra dirt that I don't use on my system) I get the following error:
(09:20 USER@system ~) > sudo pip uninstall virtualenv
The directory '/home/USER/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled.
Please check the permissions and owner of that directory.
If executing pip with sudo, you may want sudo's -H flag.
Cannot uninstall requirement virtualenv, not installed
The directory '/home/USER/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled.
Please check the permissions and owner of that directory.
If executing pip with sudo, you may want sudo's -H flag.
When I use sudo -H flag, I get this:
Cannot uninstall requirement virtualenv, not installed
But I confirmed that virtualenv is still installed:
(09:25 USER@system ~) > which virtualenv
virtualenv is /usr/local/bin/virtualenv
virtualenv is /usr/local/bin/virtualenv
virtualenv is /usr/local/bin/virtualenv
virtualenv is /usr/local/bin/virtualenv
How do I uninstall virtualenv from my system?
Thanks.
14.04 package-management python
14.04 package-management python
edited Jul 31 '16 at 12:10
shaun
asked Jul 29 '16 at 13:33
shaunshaun
11115
11115
I've removed them.
– shaun
Jul 29 '16 at 15:52
Are you sure you installedvirtualenvusingsudo pip install virtualenvinstead ofsudo pip3 install virtualenv? Can you dosudo pip listandsudo pip3 list?
– edwinksl
Jul 30 '16 at 5:36
I did those commands. They spit out a bunch of package names and at the end of the list the same error that says "the directory /home/USER/.cache/pip/http or its parent directory..." was also displayed for both pip and pip3. Also when I grep'd the list for virtualenv (using both virtual as the pattern and env as a the pattern) I didn't get any output except the error.
– shaun
Jul 30 '16 at 21:32
Can you put those outputs into your question or put them into a pastebin and link the pastebin? We are going to need more information than what you have given so far to figure out what happened.
– edwinksl
Jul 30 '16 at 21:37
Hmm, sopip listandpip3 listdon't havevirtualenv, which is at least consistent with the "Cannot uninstall requirement virtualenv, not installed" error message. If you just try to runvirtualenv, are you able to create virtual environments?
– edwinksl
Jul 31 '16 at 5:18
|
show 2 more comments
I've removed them.
– shaun
Jul 29 '16 at 15:52
Are you sure you installedvirtualenvusingsudo pip install virtualenvinstead ofsudo pip3 install virtualenv? Can you dosudo pip listandsudo pip3 list?
– edwinksl
Jul 30 '16 at 5:36
I did those commands. They spit out a bunch of package names and at the end of the list the same error that says "the directory /home/USER/.cache/pip/http or its parent directory..." was also displayed for both pip and pip3. Also when I grep'd the list for virtualenv (using both virtual as the pattern and env as a the pattern) I didn't get any output except the error.
– shaun
Jul 30 '16 at 21:32
Can you put those outputs into your question or put them into a pastebin and link the pastebin? We are going to need more information than what you have given so far to figure out what happened.
– edwinksl
Jul 30 '16 at 21:37
Hmm, sopip listandpip3 listdon't havevirtualenv, which is at least consistent with the "Cannot uninstall requirement virtualenv, not installed" error message. If you just try to runvirtualenv, are you able to create virtual environments?
– edwinksl
Jul 31 '16 at 5:18
I've removed them.
– shaun
Jul 29 '16 at 15:52
I've removed them.
– shaun
Jul 29 '16 at 15:52
Are you sure you installed
virtualenv using sudo pip install virtualenv instead of sudo pip3 install virtualenv? Can you do sudo pip list and sudo pip3 list?– edwinksl
Jul 30 '16 at 5:36
Are you sure you installed
virtualenv using sudo pip install virtualenv instead of sudo pip3 install virtualenv? Can you do sudo pip list and sudo pip3 list?– edwinksl
Jul 30 '16 at 5:36
I did those commands. They spit out a bunch of package names and at the end of the list the same error that says "the directory /home/USER/.cache/pip/http or its parent directory..." was also displayed for both pip and pip3. Also when I grep'd the list for virtualenv (using both virtual as the pattern and env as a the pattern) I didn't get any output except the error.
– shaun
Jul 30 '16 at 21:32
I did those commands. They spit out a bunch of package names and at the end of the list the same error that says "the directory /home/USER/.cache/pip/http or its parent directory..." was also displayed for both pip and pip3. Also when I grep'd the list for virtualenv (using both virtual as the pattern and env as a the pattern) I didn't get any output except the error.
– shaun
Jul 30 '16 at 21:32
Can you put those outputs into your question or put them into a pastebin and link the pastebin? We are going to need more information than what you have given so far to figure out what happened.
– edwinksl
Jul 30 '16 at 21:37
Can you put those outputs into your question or put them into a pastebin and link the pastebin? We are going to need more information than what you have given so far to figure out what happened.
– edwinksl
Jul 30 '16 at 21:37
Hmm, so
pip list and pip3 list don't have virtualenv, which is at least consistent with the "Cannot uninstall requirement virtualenv, not installed" error message. If you just try to run virtualenv, are you able to create virtual environments?– edwinksl
Jul 31 '16 at 5:18
Hmm, so
pip list and pip3 list don't have virtualenv, which is at least consistent with the "Cannot uninstall requirement virtualenv, not installed" error message. If you just try to run virtualenv, are you able to create virtual environments?– edwinksl
Jul 31 '16 at 5:18
|
show 2 more comments
3 Answers
3
active
oldest
votes
I was looking for the same thing and I saw this by chance. you can do this.
sudo apt-get remove virtualenv
sudo apt-get remove --auto-remove virtualenv
If it is normal, the following statement is not executed. But try it once.
sudo apt-get purge python-virtualenv
sudo apt-get purge --auto-remove python-virtualenv
add a comment |
try sudo pip uninstall virtualenv and this should work
add a comment |
go to the carpet (usr/local/bin) and remove it with sudo rm -r virtualenv, etc
New contributor
Víctor Ponce is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
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
});
}
});
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%2faskubuntu.com%2fquestions%2f804487%2funinstall-virtualenv-which-was-installed-through-sudo-pip%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
I was looking for the same thing and I saw this by chance. you can do this.
sudo apt-get remove virtualenv
sudo apt-get remove --auto-remove virtualenv
If it is normal, the following statement is not executed. But try it once.
sudo apt-get purge python-virtualenv
sudo apt-get purge --auto-remove python-virtualenv
add a comment |
I was looking for the same thing and I saw this by chance. you can do this.
sudo apt-get remove virtualenv
sudo apt-get remove --auto-remove virtualenv
If it is normal, the following statement is not executed. But try it once.
sudo apt-get purge python-virtualenv
sudo apt-get purge --auto-remove python-virtualenv
add a comment |
I was looking for the same thing and I saw this by chance. you can do this.
sudo apt-get remove virtualenv
sudo apt-get remove --auto-remove virtualenv
If it is normal, the following statement is not executed. But try it once.
sudo apt-get purge python-virtualenv
sudo apt-get purge --auto-remove python-virtualenv
I was looking for the same thing and I saw this by chance. you can do this.
sudo apt-get remove virtualenv
sudo apt-get remove --auto-remove virtualenv
If it is normal, the following statement is not executed. But try it once.
sudo apt-get purge python-virtualenv
sudo apt-get purge --auto-remove python-virtualenv
edited Jul 7 '17 at 10:55
Byte Commander
66.2k27181308
66.2k27181308
answered Jul 7 '17 at 10:07
Iee KahnIee Kahn
111
111
add a comment |
add a comment |
try sudo pip uninstall virtualenv and this should work
add a comment |
try sudo pip uninstall virtualenv and this should work
add a comment |
try sudo pip uninstall virtualenv and this should work
try sudo pip uninstall virtualenv and this should work
answered Feb 19 at 20:46
Fatemeh KarimiFatemeh Karimi
1179
1179
add a comment |
add a comment |
go to the carpet (usr/local/bin) and remove it with sudo rm -r virtualenv, etc
New contributor
Víctor Ponce is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
go to the carpet (usr/local/bin) and remove it with sudo rm -r virtualenv, etc
New contributor
Víctor Ponce is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
go to the carpet (usr/local/bin) and remove it with sudo rm -r virtualenv, etc
New contributor
Víctor Ponce is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
go to the carpet (usr/local/bin) and remove it with sudo rm -r virtualenv, etc
New contributor
Víctor Ponce is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Víctor Ponce is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered 13 mins ago
Víctor PonceVíctor Ponce
1
1
New contributor
Víctor Ponce is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Víctor Ponce is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Víctor Ponce is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
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.
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%2faskubuntu.com%2fquestions%2f804487%2funinstall-virtualenv-which-was-installed-through-sudo-pip%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
I've removed them.
– shaun
Jul 29 '16 at 15:52
Are you sure you installed
virtualenvusingsudo pip install virtualenvinstead ofsudo pip3 install virtualenv? Can you dosudo pip listandsudo pip3 list?– edwinksl
Jul 30 '16 at 5:36
I did those commands. They spit out a bunch of package names and at the end of the list the same error that says "the directory /home/USER/.cache/pip/http or its parent directory..." was also displayed for both pip and pip3. Also when I grep'd the list for virtualenv (using both virtual as the pattern and env as a the pattern) I didn't get any output except the error.
– shaun
Jul 30 '16 at 21:32
Can you put those outputs into your question or put them into a pastebin and link the pastebin? We are going to need more information than what you have given so far to figure out what happened.
– edwinksl
Jul 30 '16 at 21:37
Hmm, so
pip listandpip3 listdon't havevirtualenv, which is at least consistent with the "Cannot uninstall requirement virtualenv, not installed" error message. If you just try to runvirtualenv, are you able to create virtual environments?– edwinksl
Jul 31 '16 at 5:18