Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uninstalling a python module in ubuntu

I have to delete a python module named "django" (a popular one), because I installed the wrong version (1.3 - beta in py-2.6).

How to uninstall this module?
Please explain, because I've used python only in Windows and never in Ubuntu.

like image 795
VoodooChild92 Avatar asked May 11 '11 05:05

VoodooChild92


People also ask

How do I completely remove Python from ubuntu?

Navigate to Control Panel. Click “Uninstall a program”, and a list of all the currently installed programs will display. Select the Python version that you want to uninstall, then click the “Uninstall” button above the list – this has to be done for every Python version installed on the system.

How do I uninstall Python pip?

python -m pip uninstall [options] -r <requirements file> ... py -m pip uninstall [options] <package> ... py -m pip uninstall [options] -r <requirements file> ...


2 Answers

go to the python shell

 >> import django
 django.__path__

copy the path

on the shell

 sudo  rm -r path 
like image 125
mossplix Avatar answered Sep 23 '22 22:09

mossplix


sudo aptitude install python-pip
sudo pip install django --upgrade
like image 32
lprsd Avatar answered Sep 20 '22 22:09

lprsd