环境配置。

conda create -n name python=3.10 -y

conda activate name

pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu121

pip install torch-scatter torch-sparse torch-cluster torch-spline-conv -f https://data.pyg.org/whl/torch-2.5.1+cu121.html

pip install torch-geometric==2.7.0 transformers==4.57.3 accelerate==1.12.0 datasets==4.3.0 sktime==0.16.1 safetensors==0.7.0 tokenizers==0.22.1 einops==0.8.1 numpy==1.24.4 pandas==1.5.3 scikit-learn==1.2.2 scipy==1.10.1 matplotlib==3.7.0 jupyterlab notebook ipykernel networkx==3.3 tqdm==4.67.1 pyyaml contourpy dill sympy -i https://pypi.tuna.tsinghua.edu.cn/simple

复制代码
# 尝试使用清华源安装 PyTorch 核心组件
pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://pypi.tuna.tsinghua.edu.cn/simple

# 补充安装 pyg-lib,并安装其他 scatter/sparse 组件
pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.5.1+cu121.html

pip install torch-geometric==2.7.0 transformers==4.57.3 accelerate==1.12.0 \
datasets==4.3.0 sktime==0.16.1 safetensors==0.7.0 tokenizers==0.22.1 \
einops==0.8.1 numpy==1.24.4 pandas==1.5.3 scikit-learn==1.2.2 scipy==1.10.1 \
matplotlib==3.7.0 jupyterlab notebook ipykernel networkx==3.3 tqdm==4.67.1 \
pyyaml contourpy dill sympy numba==0.62.1 llvmlite \
-i https://pypi.tuna.tsinghua.edu.cn/simple
相关推荐
Csvn3 小时前
第 28 章 案例四 多智能体协作系统
人工智能·aigc·agent
IT_陈寒3 小时前
Java中equals方法比了个寂寞?原来这才是正确的重写姿势
前端·人工智能·后端
吴佳浩3 小时前
Agent 怎么做自动化评测?构建端到端的 Agent Evaluation 体系
人工智能·agent·ai编程
火山引擎开发者社区3 小时前
火山引擎云数据库 TiDB 版公测开启,MySQL 架构升级的一站式选择
人工智能
代码方舟3 小时前
Java数据工程:利用天远全网运营商三要素优化线上实名认证合规体验
java·人工智能
Csvn3 小时前
第 27 章 案例三 自动化工作流 Agent
人工智能·aigc·agent
知几蜗牛3 小时前
AI眼镜把记忆放上云,怎样证明云端也看不见?
人工智能
知几蜗牛3 小时前
训练数据越多越好吗?用LeRobot讲清数据质量与版本化
人工智能
知几蜗牛3 小时前
PR合并慢,别再只看平均时长:GitHub把等待拆成了三段
人工智能
知几蜗牛3 小时前
AI账单失控前,团队真正缺的不是更便宜的模型
人工智能