1. Install the third-party package virtualenv for the virtual environment
pip install virtualenv -i https://pypi.douban.com/simple/
2. Create a virtual environment
(1) Enter the address where you want to store the virtual environment
Here I want to put the virtual environment to be created in the D:\ebvs directory
(2) Create a virtual environment
The virtualenv environment name
creates a virtual environment named pachong.
Note: Because the third-party package virtualenv was installed under python before, the virtual environment created at this time is based on the python version (3.7.4).
3. Activate the virtual environment
cd d:
cd envs #进入虚拟环境的目录
Activate the environment name to
view the third-party libraries installed in the current virtual environment:
4. Exit the virtual environment
deactivate
5. Delete the virtual environment
Just delete its directory.