**Original intention: **
When we are working, we will have many projects, and each project uses a different version of the library, which makes it very troublesome for us to switch projects.
For example: I have two django projects, the version used in the first project is django 1.7, and the version used in the second project is django 2.2. Both projects are usually maintained. If there is no independent environment, then every time I maintain project one, I need to install django 1.7. When maintaining project two, I need to install django 2.2, which will be very troublesome.
Therefore, we need to establish an independent environment for each project. At this time, environmental management comes in handy. When I maintain project 1, I only need to use the environment of project 1 to run the project, and I don’t need to uninstall it. Install the specified django version.
Environmental management tools: venv
**Installation method: **
After Python 3.3, comes with the library.
Instructions:
python -m venv [environment name]
test\scripts\deactivate.bat
The above is the whole content of this article, I hope it will be helpful to everyone's study.
Recommended Posts