在ubuntu中卸载一个python模块 [英] Uninstalling a python module in ubuntu

查看:482
本文介绍了在ubuntu中卸载一个python模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须删除一个名为django(一个受欢迎的)的python模块,因为我安装了错误的版本(1.3-beta在py-2.6中)。

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).

如何卸载此模块?

请解释,因为我只在Windows中使用python,从来没有在Ubuntu中使用。

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

推荐答案

转到python shell

go to the python shell

 >> import django



 django.__path__

在shell上复制路径

copy the path

 sudo  rm -r path 

这篇关于在ubuntu中卸载一个python模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆