소스 검색

feat: pip mirror

Byaidu 1 년 전
부모
커밋
adfc4e5b02
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      setup.bat

+ 2 - 1
setup.bat

@@ -4,6 +4,7 @@ setlocal enabledelayedexpansion
 set PYTHON_URL=https://www.python.org/ftp/python/3.12.7/python-3.12.7-embed-amd64.zip
 set PIP_URL=https://bootstrap.pypa.io/get-pip.py
 set HF_ENDPOINT=https://hf-mirror.com
+set PIP_MIRROR=https://mirrors.aliyun.com/pypi/simple
 
 if not exist pdf2zh_dist/python.exe (
     powershell -Command "& {Invoke-WebRequest -Uri !PYTHON_URL! -OutFile python.zip}"
@@ -19,7 +20,7 @@ if not exist Scripts/pip.exe (
 )
 path Scripts
 
-pip install --no-warn-script-location --upgrade pdf2zh
+pip install --no-warn-script-location --upgrade pdf2zh -i !PIP_MIRROR!
 pdf2zh -i
 
 pause