From a9fd62ec26af7f689e1cb4b173c664e48e427fc4 Mon Sep 17 00:00:00 2001 From: Radium-bit Date: Sun, 31 Jul 2022 10:37:46 +0800 Subject: [PATCH 1/2] Fix the problem that Python cannot find modules Fix the problem that Python cannot find modules. --- 01A.构建运行环境(默认源).bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/01A.构建运行环境(默认源).bat b/01A.构建运行环境(默认源).bat index b96ba72..ae4b27e 100644 --- a/01A.构建运行环境(默认源).bat +++ b/01A.构建运行环境(默认源).bat @@ -4,4 +4,5 @@ python -m venv venv call venv\Scripts\activate.bat pip install -r .\requirements.txt pip install torch --extra-index-url https://download.pytorch.org/whl/cu113 -pause \ No newline at end of file +type .\venv\Lib\site-packages\__init__.py +pause From ab2d8b3f52e57aa7e7b9d81cd809d21c3afd29ee Mon Sep 17 00:00:00 2001 From: Radium-bit Date: Sun, 31 Jul 2022 10:38:16 +0800 Subject: [PATCH 2/2] Fix the problem that Python cannot find modules Fix the problem that P.ython cannot find modules --- 01B.构建运行环境(国内源).bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/01B.构建运行环境(国内源).bat b/01B.构建运行环境(国内源).bat index dcd02ed..72dee0d 100644 --- a/01B.构建运行环境(国内源).bat +++ b/01B.构建运行环境(国内源).bat @@ -3,4 +3,5 @@ python -m venv venv call venv\Scripts\activate.bat pip install -r .\requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple pip install torch --extra-index-url https://download.pytorch.org/whl/cu113 -pause \ No newline at end of file +type .\venv\Lib\site-packages\__init__.py +pause