How to reinstall Django after it is uninstalled
Preface
Everyone should have some experience. Different Django versions may be used in different projects, and the concurrency is a big problem. If you unfortunately want to take over projects of different versions, it will be quite miserable!
If you want to reinstall a Django version, uninstall it before installing it.
Uninstall
First, find the django installation path
Pythonimport sys; sys. path = sys. path [1:]; import django; print (django. _ path __)
Get
Django installation directory ['/Library/Python/2.7/site-packages/django']
Delete the django directory.
Install
Then you can reinstall
If you use Python egg to install Django, directly Delete the Django ''. egg'' file,
Delete the egg reference in ''easy-install. pth.
This file can be found in the ''site-packages ''directory.
Summary
The above is all the content of this article. I hope the content of this article will help you in your study or work. If you have any questions, please leave a message, thank you for your support.