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