VoodooChild92
VoodooChild92

Reputation: 2053

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.

Upvotes: 5

Views: 6740

Answers (2)

mossplix
mossplix

Reputation: 3865

go to the python shell

 >> import django
 django.__path__

copy the path

on the shell

 sudo  rm -r path 

Upvotes: 10

lprsd
lprsd

Reputation: 87077

sudo aptitude install python-pip
sudo pip install django --upgrade

Upvotes: 1

Related Questions