1. Pre-installation conditions
python3.7 and pip (You can use this command to upgrade python -m pip install --upgrade pip)
2. Install virtualenv
pip install virtualenv
3. Create a sandbox environment
1) Use cmd command line to enter the store directory sandbox environment
2) Type the command "virtualenv + sandbox name."
4. Using the Sandbox
4.1 If you want to use the command line to use the sandbox, you can enter the Scripts directory under the directory py_django
Input can activate boot environment
If you want to quit, you can use the deactivate command
4.2 If you want to use in the PyCharm
4.2.1 Creating a new project
As shown, you can choose Existing interpreter, select sandbox environment python.exe file in the Script directory can finally enter a project name, select Create
4.2.2 If it is an existing project, want to replace the sandbox environment interpreter interpreter
File-》Setting-》project-》Project Interpreter
Also select python.exe files in a sandbox environment Script directory can