Introduction and creation of Python virtual environments

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

Introduction to Python virtual environment and creation of what is a Python virtual environment

Virtualenv is a powerful tool for Python multi-version management, VIRTUALENV can build a virtual and independent Python environment, allowing each project environment to be independent of other projects, keeping the environment clean and solving the problem of package conflicts.
You can understand that a virtual computer on your computer

Create a Python virtual environment

1. Create a virtual environment

Python-m venv Test
Virtual Environment name for test

2. Start the virtual environment

CD test
CD Scripts
Activate.bat
The results are as follows, with the identification of test at the front

3, installing Django in a virtual environment

Cd..

3.1, online installation

Pip Install Django

But perhaps the domestic network is too slow. Then download the installation

3.2, download and install
Address: https://www.djangoproject.com/

Pip Install django-1.11.6.tar.gz

4, check that the current environment is already installed so the library

Pip Freeze

System default Python environment is there Django?

All of the above commands can be found on Django's official website.



From for notes (Wiz)

Introduction and creation of Python virtual environments

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.