python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
退出
deactivate
换源
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
注意
.venv 不要提交到 git,加进 .gitignore。
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
deactivate
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
.venv 不要提交到 git,加进 .gitignore。