How to reinstall Django after it is uninstalled

Source: Internet
Author: User
Tags install django

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.