Get the App
SLTechnology News&Howtos  ›  Servers  › 

Uninstall and reinstall django under windows

Shulou Source: shulou.com Published: 2022-06-02 20:55:16 09月29日 Update

Different projects may use different versions of Django, and concurrently is a big problem.

If you have the misfortune to take over different versions of the project, it will be tragic!

If you want to reinstall a version of Django, you need to uninstall it before installing it.

First find the django installation path

Importdjangoprint (django.__path__) ['C:\\ Python27_32\\ lib\\ site-packages\\ django-1.8.17-py2.7.egg\\ django']

Get the django installation directory ['C:\\ Python27_32\\ lib\\ site-packages\\ django-1.8.17-py2.7.egg\\ django']

Just delete the django-1.8.17-py2.7.egg directory

You can reinstall it later

Cd C:\ Users\ Hunk\ Desktop\ test\ Django-1.2.7

C:\ Users\ Hunk\ Desktop\ test\ Django-1.2.7 > C:\ Python27_32\ python.exe setup.py insta

Ll

Tags: Different version catalog project tragic unfortunate path problem Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Shulou Tech Info MariaDB Apple Shulou Information