#env in VS Code
#create the working folder
c:\web
#install the virtual env
sudo apt-get install python3-venv # If needed
#setup the env in local folder
python -m venv env
#start the vs code in this folder
code .
#select the interpreter
ctrl+shift+p select python interpreter
#install django in this env
python -m pip install django
#create a web pages
django-admin startproject CollegeApplication .
#run the server
python manage.py runserver
#how to get the version
python
import django
django.VERSION
原文:https://www.cnblogs.com/zjbfvfv/p/13042190.html