From 6c17dc5a158b711dd7deffb65b6078450b3cdcf4 Mon Sep 17 00:00:00 2001 From: aaron <> Date: Mon, 28 Apr 2025 18:07:50 +0800 Subject: [PATCH] update --- qinglong_task.sh | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/qinglong_task.sh b/qinglong_task.sh index de4b83e..fe74ca3 100755 --- a/qinglong_task.sh +++ b/qinglong_task.sh @@ -81,15 +81,30 @@ if ! pip list | grep -q "pandas"; then # 首先升级pip pip install --upgrade pip - # 使用国内镜像源安装依赖 - pip install -i https://mirrors.aliyun.com/pypi/simple/ --prefer-binary -r requirements.txt + # 安装setuptools的兼容版本 + pip install -i https://mirrors.aliyun.com/pypi/simple/ "setuptools<60.0" + + # 使用国内镜像源安装预编译的wheel包 + pip install -i https://mirrors.aliyun.com/pypi/simple/ --only-binary :all: numpy==1.24.3 + pip install -i https://mirrors.aliyun.com/pypi/simple/ --only-binary :all: pandas==2.0.3 + pip install -i https://mirrors.aliyun.com/pypi/simple/ --only-binary :all: python-binance==1.0.16 + pip install -i https://mirrors.aliyun.com/pypi/simple/ --only-binary :all: matplotlib==3.7.1 + pip install -i https://mirrors.aliyun.com/pypi/simple/ --only-binary :all: scikit-learn==1.2.2 + pip install -i https://mirrors.aliyun.com/pypi/simple/ --only-binary :all: sqlalchemy==2.0.19 + pip install -i https://mirrors.aliyun.com/pypi/simple/ --only-binary :all: pymysql==1.1.0 + pip install -i https://mirrors.aliyun.com/pypi/simple/ --only-binary :all: cryptography==41.0.3 + pip install -i https://mirrors.aliyun.com/pypi/simple/ --only-binary :all: requests==2.31.0 + pip install -i https://mirrors.aliyun.com/pypi/simple/ --only-binary :all: pyyaml==6.0.1 + pip install -i https://mirrors.aliyun.com/pypi/simple/ --only-binary :all: python-dotenv==1.0.0 + pip install -i https://mirrors.aliyun.com/pypi/simple/ --only-binary :all: deepseek-ai==0.0.1 + pip install -i https://mirrors.aliyun.com/pypi/simple/ --only-binary :all: schedule==1.2.0 + pip install -i https://mirrors.aliyun.com/pypi/simple/ --only-binary :all: aiohttp>=3.8.5 + pip install -i https://mirrors.aliyun.com/pypi/simple/ --only-binary :all: langchain>=0.0.267 + pip install -i https://mirrors.aliyun.com/pypi/simple/ --only-binary :all: pydantic>=2.3.0 + pip install -i https://mirrors.aliyun.com/pypi/simple/ --only-binary :all: fastapi>=0.103.1 + pip install -i https://mirrors.aliyun.com/pypi/simple/ --only-binary :all: uvicorn>=0.23.2 # 验证关键依赖是否安装成功 - # if ! pip list | grep -q "pandas"; then - # pip install -r requirements.txt - # fi - - # 再次验证 if ! pip list | grep -q "pandas"; then echo "错误:依赖安装失败,请检查网络连接或手动安装依赖" exit 1