1 后端启动环境
郑云星-全栈实习生 edited this page 2024-11-22 01:22:17 +00:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

首先创建venv

python -m venv venv

然后进入:

.\venv\Scripts\Activate

升级pip和setuptools

python -m pip install --upgrade pip -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple

python -m pip install --upgrade setuptools -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple

安装依赖

python.exe -m pip install -r requirements.txt -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple

全程使用清华源,需要关闭代理