Python之虚拟环境
一、创建环境
python -m venv ENV_DIR
二、激活环境
windows下:
.\ENV_DIR\Scripts\activate
mac下:
source .\ENV_DIR\bin\activate
三、安装环境
pip install django
pip install djangorestframework
pip install pymysql
pip install django-cors-headers
python -m venv ENV_DIR
windows下:
.\ENV_DIR\Scripts\activate
mac下:
source .\ENV_DIR\bin\activate
pip install django
pip install djangorestframework
pip install pymysql
pip install django-cors-headers