preamble
As you should have experienced, you may use different versions of Django in different projects, and concurrency is the big problem, if you are unfortunate enough to have to go and take over a different version of the project, it is rather disastrous!
If you want to reinstall a Django version, you need to uninstall it before installing it.
uninstallation
First find the django installation path
Python import sys; = [1:]; import django; print(django.__path__)
capture
The django installation directory ['/Library/Python/2.7/site-packages/django'].
Just delete the django directory
mounting
After that you can reinstall
If you're using Python egg to install Django, just delete the Django ``.egg`` file, and
And just remove the egg reference from ````.
This file should be found in the ``site-packages`` directory.
summarize
The above is the entire content of this article, I hope that the content of this article on your learning or work can bring some help, if there are questions you can leave a message to exchange, thank you for my support.