commit bc614cf60f3a1f3e8f5e5845fa060fa072d822d6 Author: 郑云星-全栈实习生 <2116344865@qq.com> Date: Fri Nov 22 01:22:17 2024 +0000 添加 后端启动环境 diff --git a/%E5%90%8E%E7%AB%AF%E5%90%AF%E5%8A%A8%E7%8E%AF%E5%A2%83.md b/%E5%90%8E%E7%AB%AF%E5%90%AF%E5%8A%A8%E7%8E%AF%E5%A2%83.md new file mode 100644 index 0000000..69b9c8c --- /dev/null +++ b/%E5%90%8E%E7%AB%AF%E5%90%AF%E5%8A%A8%E7%8E%AF%E5%A2%83.md @@ -0,0 +1,27 @@ +首先创建venv: + +```jsx +python -m venv venv +``` + +然后进入: + +```jsx +.\venv\Scripts\Activate +``` + +升级pip和setuptools + +```jsx +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 +``` + +安装依赖 + +```jsx +python.exe -m pip install -r requirements.txt -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple +``` + +全程使用清华源,需要关闭代理 \ No newline at end of file