1. Problem description
In the past few days, I was going to learn the things that I needed to set up the following things, but because all kinds of procrastination have not started, I suddenly wanted to start doing it today, but I got stuck in the first step, setting up the environment.
This is the case. My design is Python-related, so I want to build a Django project in a virtual environment. I searched the following on the Internet. I need to install the virtual environment first.
2. Operation steps
1. Execute the following command to install
pip.exe install virtualenv
2. Use the following command to check to see if the installation is successful
virtualenv --version
3. Enter the directory where you want to create a virtual environment and create a virtual environment
virtualenv 环境名
4. Enter the Scripts directory of the virtual environment and execute the following file activate.bat to activate the virtual environment
activate
5. Exit the virtual environment and execute deactivate
deactivate