update
This commit is contained in:
parent
cd08065500
commit
6c17dc5a15
@ -81,15 +81,30 @@ if ! pip list | grep -q "pandas"; then
|
|||||||
# 首先升级pip
|
# 首先升级pip
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
|
|
||||||
# 使用国内镜像源安装依赖
|
# 安装setuptools的兼容版本
|
||||||
pip install -i https://mirrors.aliyun.com/pypi/simple/ --prefer-binary -r requirements.txt
|
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
|
if ! pip list | grep -q "pandas"; then
|
||||||
echo "错误:依赖安装失败,请检查网络连接或手动安装依赖"
|
echo "错误:依赖安装失败,请检查网络连接或手动安装依赖"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user