启动openai和pillow库超时问题

主要改动如下:
1、在ensure_dependencies函数更更新包时,出现超时的情况,指定更新源 https://pypi.douban.com/simple/
This commit is contained in:
依初雪 2023-03-06 00:32:46 +08:00 committed by GitHub
parent 5afcc03e8b
commit df30931aad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ def init_db():
def ensure_dependencies():
import pkg.utils.pkgmgr as pkgmgr
pkgmgr.run_pip(["install", "openai", "Pillow", "--upgrade"])
pkgmgr.run_pip(["install", "openai", "Pillow", "--upgrade", "-i", "https://pypi.douban.com/simple/"])
known_exception_caught = False