update
This commit is contained in:
parent
549f360615
commit
e321cadc71
@ -75,22 +75,30 @@ if ! command -v gcc &> /dev/null; then
|
||||
fi
|
||||
|
||||
# 检查依赖是否安装
|
||||
echo "检查并安装依赖包..."
|
||||
if ! pip list | grep -q "pandas"; then
|
||||
echo "安装依赖..."
|
||||
pip install -r requirements.txt
|
||||
# # 使用国内镜像源并优先使用预编译的wheel
|
||||
# pip install -i https://mirrors.aliyun.com/pypi/simple/ --prefer-binary python-binance==1.0.16
|
||||
# pip install -i https://mirrors.aliyun.com/pypi/simple/ --prefer-binary pandas==2.0.3
|
||||
# pip install -i https://mirrors.aliyun.com/pypi/simple/ --prefer-binary numpy==1.24.3
|
||||
# pip install -i https://mirrors.aliyun.com/pypi/simple/ --prefer-binary matplotlib==3.7.1
|
||||
# pip install -i https://mirrors.aliyun.com/pypi/simple/ --prefer-binary scikit-learn==1.2.2
|
||||
# pip install -i https://mirrors.aliyun.com/pypi/simple/ --prefer-binary sqlalchemy==2.0.19
|
||||
# pip install -i https://mirrors.aliyun.com/pypi/simple/ --prefer-binary pymysql==1.1.0
|
||||
# pip install -i https://mirrors.aliyun.com/pypi/simple/ --prefer-binary cryptography==41.0.3
|
||||
# pip install -i https://mirrors.aliyun.com/pypi/simple/ --prefer-binary requests==2.31.0
|
||||
# pip install -i https://mirrors.aliyun.com/pypi/simple/ --prefer-binary pyyaml==6.0.1
|
||||
echo "开始安装依赖..."
|
||||
# 首先升级pip
|
||||
pip install --upgrade pip
|
||||
|
||||
# 使用国内镜像源安装依赖
|
||||
pip install -i https://mirrors.aliyun.com/pypi/simple/ --prefer-binary -r requirements.txt
|
||||
|
||||
# 验证关键依赖是否安装成功
|
||||
if ! pip list | grep -q "pandas"; then
|
||||
echo "依赖安装失败,尝试单独安装关键包..."
|
||||
pip install -r requirements.txt
|
||||
fi
|
||||
|
||||
# 再次验证
|
||||
if ! pip list | grep -q "pandas"; then
|
||||
echo "错误:依赖安装失败,请检查网络连接或手动安装依赖"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "依赖检查完成"
|
||||
|
||||
# 运行加密货币分析
|
||||
python run.py --run-once --agent crypto
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user