Installation of Django library

1. Create folder python web→code→Django (copy this path)

2. Open the terminal (win+r), switch to the fixed directory, enter cd D:\python web\code\django and press Enter, and it is still in the c drive.

Enter "D:" to switch to the D drive

3. Create a virtual environment virtualenv venv

 

4. Activate the virtual environment venv\Scripts\activate

 

5. Install the Django library pip install Django

6. Check whether the installation is successful pip list

 As shown in the picture, the installation is successful

Guess you like

Origin blog.csdn.net/m0_65178842/article/details/129289566