Sunday, May 5, 2024
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1540  / 3 Years ago, fri, august 20, 2021, 6:02:39
$ sudo pip uninstall virtualenv 
WARNING: Skipping virtualenv as it is not installed.

$ sudo pip3 uninstall virtualenv 
WARNING: Skipping virtualenv as it is not installed.

$ sudo apt-get purge python-virtualenv  
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'python-virtualenv' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 136 not upgraded.

$ virtualenv --version
virtualenv 20.4.3 from /home/manu/.local/lib/python3.8/site-packages/virtualenv/__init__.py

pip list and pip3 list mention the virtualenv.


Also, commands mentioned here do not work:



sudo apt-get remove virtualenv  
sudo apt-get remove --auto-remove virtualenv



sudo apt-get purge python-virtualenv  
sudo apt-get purge --auto-remove python-virtualenv


More From » software-uninstall

 Answers
5

Take a look at your venv location: /home/manu/.local/lib/python3.8/site-packages/virtualenv/init.py. The .local directory means that it didn't come from a deb or Snap package. Maybe from pip. Maybe from some other method.


The python3.8 directory tells you which version of Python uses it, so your commands should be python3 and pip3 -- Py2-specific commands won't help.


Since you queried pip3, and it never heard of virtualenv, seems safe enough to delete that directory.


[#1470] Saturday, August 21, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cklaceowne

Total Points: 228
Total Questions: 102
Total Answers: 111

Location: Ivory Coast
Member since Sun, Mar 7, 2021
3 Years ago
cklaceowne questions
Sun, May 28, 23, 01:20, 1 Year ago
Thu, Jul 7, 22, 06:47, 2 Years ago
Fri, Jan 21, 22, 19:52, 2 Years ago
Sat, May 29, 21, 12:27, 3 Years ago
;