Skip to content

python ​

1. 隔离环境 ​

1.1 创建 ​

在你的项目中创建一个虚拟环境

bash
python -m venv .venv

1.2 激活环境 ​

bash
.venv\Scripts\activate

pip ​

从 requirements.txt 中安装依赖 ​

bash
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

导出 requirements.txt 依赖文件 ​

bash
pip freeze > requirements.txt

个人收集整理, MIT License