1. Download the VIRTUALENV installation package, https://pypi.org/project/virtualenv/#files, find the appropriate Python version of the file, download it, and place the files in a folder with Pip files in the Python installation folder.
Open the folder in 2.cmd and enter Pip install Virtualenv.
3. After the installation is complete, enter the command: Virtualven venv Create a folder for the virtual Python environment, where there will be a venv folder in the folder where the pip file is placed.
4. Enter the command: Scripts\activate, a number of previous (venv) symbols to enter the virtual environment.
5. Install Django and enter the command pip install Django to install.
If you close a terminal running a virtual environment, the virtual environment is no longer active, and Django is only available if the virtual environment is active.
Install Virtualenv/django under Windows