[Oldboy] [First knowledge of Django] Create a virtual (clean) Python environment [0]

Source: Internet
Author: User
Tags install django pip install django virtual environment virtualenv

What if application a requires Jinja 2.7 and application B needs Jinja 2.6? You can create different virtual environments for different applications at this time.

In this case, each app may need to have a "standalone" Python runtime environment. Virtualenv is a python run environment that is used to create a "quarantine" for an application.

1 PIP3 Install Virtualenv

2 virtualenv-p c:\python35\python3.exe--no-site-packages ENV35 (remember that the virtual Python environment you created at this time is not any third-party package ()

3 CD ENV35

4 Activating a virtual environment


5 You can install the third-party package you want to install at this time (for example, Django)

  Pip Install Django

6 Exiting the virtual environment



  cd d:\django_project
  django-admin startproject mysite

CD MySite

Python manage.py runserver


[Oldboy] [First knowledge of Django] Create a virtual (clean) Python environment [0]

Related Article

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.