From 52102f0d0a3586d7551e3e3228dc17eb97d4bbbb Mon Sep 17 00:00:00 2001 From: Rock Chin <1010553892@qq.com> Date: Mon, 6 Mar 2023 08:43:51 +0800 Subject: [PATCH] =?UTF-8?q?feat(deps):=20trusted-host=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index acac4b2f..df6e213d 100644 --- a/main.py +++ b/main.py @@ -45,7 +45,9 @@ def init_db(): def ensure_dependencies(): import pkg.utils.pkgmgr as pkgmgr - pkgmgr.run_pip(["install", "openai", "Pillow", "--upgrade", "-i", "https://pypi.douban.com/simple/"]) + pkgmgr.run_pip(["install", "openai", "Pillow", "--upgrade", + "-i", "https://pypi.douban.com/simple/", + "--trusted-host", "pypi.douban.com"]) known_exception_caught = False