添加 后端启动环境
commit
bc614cf60f
27
%E5%90%8E%E7%AB%AF%E5%90%AF%E5%8A%A8%E7%8E%AF%E5%A2%83.md
Normal file
27
%E5%90%8E%E7%AB%AF%E5%90%AF%E5%8A%A8%E7%8E%AF%E5%A2%83.md
Normal file
@ -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
|
||||||
|
```
|
||||||
|
|
||||||
|
全程使用清华源,需要关闭代理
|
Loading…
Reference in New Issue
Block a user