windows搭建说明.md 1.6 KB
Newer Older
G
Gumingjie0312 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
# Windows搭建说明
###### qq官群1:714730084
###### qq官群3:878847174
##### [加群链接生成器](https://qun.qq.com/join.html)
##### [git图标生成器](https://github.com/badges/shields)


## 方法一:docker安装(推荐)
### 先确认本地有docker

```shell
docker version
```

如输出类似
```
Client:
 Version:           20.10.23
 API version:       1.41
 Go version:        go1.18.10
 Git commit:        7155243
 Built:             Thu Jan 19 17:43:10 2023
 OS/Arch:           windows/amd64
 Context:           default
 Experimental:      true
 ```
则说明本地有docker

如果没有这样的提示则说明本地没有docker,可以参考[这篇文章](https://www.runoob.com/docker/windows-docker-install.html)

接下来安装容器,输入以下指令即可安装
```shell
docker run -it -p 5705:5705 -p 9001:9001 --restart=always --name drpy -d hjdhnx/drpy
```

没有错误提示的话就可以在**这台电脑打开**[链接](http://localhost:5705/index)

若能打开即搭建成功

## 方法二:使用python运行
```shell
#先将项目克隆到本地
git clone https://gitcode.net/qq_32394351/dr_py.git

#进入目录
cd dr_py

H
hjdhnx 已提交
48 49 50
#换源
pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple

G
Gumingjie0312 已提交
51
#安装所需依赖
52
pip install -r requirements.txt
G
Gumingjie0312 已提交
53 54 55 56 57 58 59 60 61 62 63

#运行主程序
python app.py
```

若报错,请检查是否有python环境`python --version`,入如果没有,请到[python官网下载](https://www.python.org/)

同样,没有错误提示的话就可以在**这台电脑打开**[链接](http://localhost:5705/index)

---
如果有问题,请提出[issue](https://gitcode.net/qq_32394351/dr_py/-/issues?spm=1033.2243.3001.5874)