Python
约 90 字
①创建虚拟环境
python -m venv env
②激活虚拟环境
.\env\Scripts\activate
③退出虚拟环境
deactivate
保存项目中的依赖
pip freeze > requirements.txt
批量安装依赖的包
pip install -r requirements.txt
批量卸载依赖的包
pip uninstall -r requirements.txt
python -m venv env
.\env\Scripts\activate
deactivate
pip freeze > requirements.txt
pip install -r requirements.txt
pip uninstall -r requirements.txt