From de25bfcd1b722b90add6f99aa81c92220e7ccb80 Mon Sep 17 00:00:00 2001 From: yuyuyzl Date: Tue, 9 Aug 2022 21:30:01 +0800 Subject: [PATCH] include venv --- 01B.构建运行环境(国内源).bat | 2 +- bin/python310._pth | 1 - bin/sitecustomize.py | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 bin/sitecustomize.py diff --git a/01B.构建运行环境(国内源).bat b/01B.构建运行环境(国内源).bat index 1fb27f5..d5eac44 100644 --- a/01B.构建运行环境(国内源).bat +++ b/01B.构建运行环境(国内源).bat @@ -1,5 +1,5 @@ @echo off cd bin python.exe -m pip install -r ..\requirements.txt -i https://mirror.sjtu.edu.cn/pypi/web/simple --no-warn-script-location -python.exe -m pip install torch --extra-index-url https://mirror.sjtu.edu.cn/pytorch-wheels/cu113 --no-warn-script-location +python.exe -m pip install torch -i https://mirror.sjtu.edu.cn/pytorch-wheels/cu113 --no-warn-script-location pause \ No newline at end of file diff --git a/bin/python310._pth b/bin/python310._pth index 443ea96..3cdaa75 100644 --- a/bin/python310._pth +++ b/bin/python310._pth @@ -1,6 +1,5 @@ python310.zip . -sys.path.append('') # Uncomment to run site.main() automatically import site diff --git a/bin/sitecustomize.py b/bin/sitecustomize.py new file mode 100644 index 0000000..5bc9d3a --- /dev/null +++ b/bin/sitecustomize.py @@ -0,0 +1,2 @@ +import sys +sys.path.append('')