Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Uninstall and reinstall django under windows

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report