Uninstalling a python module in ubuntu

痞子三分冷 提交于 2019-12-07 06:24:21

问题


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.


回答1:


go to the python shell

 >> import django
 django.__path__

copy the path

on the shell

 sudo  rm -r path 



回答2:


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


来源:https://stackoverflow.com/questions/5959647/uninstalling-a-python-module-in-ubuntu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!