macos 在 Mac OS X 上卸载 Django
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8146357/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Uninstall Django on Mac OS X
提问by Kit
I installed Django by downloading the tarball, then
我通过下载 tarball 安装了 Django,然后
$ tar xzvf Django-1.3.1.tar.gz
$ cd Django-1.3.1
$ sudo python setup.py install
How do I uninstall Django? I can start by deleting the folder
如何卸载 Django?我可以先删除文件夹
/Library/Frameworks/Python.frameworks/Versions/Current/lib/python2.7/site-packages/django
Which other files, folders, and symlinks should I delete?
我应该删除哪些其他文件、文件夹和符号链接?
回答by Usman Chaudhry
If you installed Django using setup.py install, uninstalling is as simple as deleting the django directory from your Python site-packages. That is the best and only way to do it.
如果您使用 setup.py install 安装了 Django,卸载就像从 Python 站点包中删除 django 目录一样简单。这是最好的也是唯一的方法。
Reference Docs: https://docs.djangoproject.com/en/dev/topics/install/?from=olddocs
参考文档:https: //docs.djangoproject.com/en/dev/topics/install/?from =olddocs