如何完全删除 django-registration?
我错误地安装了旧版本的 django-registration,将其修复到新版本似乎相当复杂。那么,由于我刚刚重新启动一个项目,如何才能完全卸载模块 django-registration?
I have installed and old version by mistake of django-registration and it seems quite complicated to fix it to the new one. So since i am just starting a project anew, how can I uninstall completely the module django-registration?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
删除文件夹
/usr/local/pythonX.Y/site-packages/django-registration
,其中XY
是您的 python 版本,您可以通过运行python 找到它--版本
Remove the folder
/usr/local/pythonX.Y/site-packages/django-registration
whereX.Y
is your python version, which you can find by runningpython --version
如果安装了 pip,那么只需执行以下命令即可。
pip uninstall django-registration
您还可以通过转到根目录或虚拟环境级别的
/lib
目录来确认。例如
/lib/python2.7/site-packages/
如果您看不到名为
registration
的目录,则表示 django-registration 已被删除。If pip is installed then simply fire following command, that's it.
pip uninstall django-registration
Also you can confirm it by going to
/lib
directory at root or at virtual environment level.e.g.
/lib/python2.7/site-packages/
If you cant see directory named
registration
means django-registration has been removed.