From 2acdaa96b2bfb97f43da5f624d9ee1099b4fbb72 Mon Sep 17 00:00:00 2001 From: josc146 Date: Wed, 25 Oct 2023 17:51:59 +0800 Subject: [PATCH] chore --- backend-golang/rwkv.go | 2 +- backend-python/dep_check.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend-golang/rwkv.go b/backend-golang/rwkv.go index 6ea148a..98b4a61 100644 --- a/backend-golang/rwkv.go +++ b/backend-golang/rwkv.go @@ -149,7 +149,7 @@ func (a *App) InstallPyDep(python string, cnMirror bool) (string, error) { if runtime.GOOS == "windows" { ChangeFileLine("./py310/python310._pth", 3, "Lib\\site-packages") - installScript := python + " ./backend-python/get-pip.py -i https://pypi.tuna.tsinghua.edu.cn/simple\n" + + installScript := python + " ./backend-python/get-pip.py -i https://pypi.tuna.tsinghua.edu.cn/simple --no-warn-script-location\n" + python + " -m pip install torch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 --index-url https://download.pytorch.org/whl/cu117 --no-warn-script-location\n" + python + " -m pip install -r ./backend-python/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --no-warn-script-location\n" + "exit" diff --git a/backend-python/dep_check.py b/backend-python/dep_check.py index 78159e5..9abf783 100644 --- a/backend-python/dep_check.py +++ b/backend-python/dep_check.py @@ -11,6 +11,7 @@ import GPUtil import torch import rwkv +import langchain import numpy import tokenizers import fastapi