虚拟环境概念:为了给项目提供独立的安装环境,防止多项目依赖冲突
虚拟环境安装
pip install virtualenv
进入项目安装虚拟目录
virtualenv venv
进入命令目录
cd ./venv/Scripts
激活虚拟环境
activate
离开虚拟环境
deactivate