环境配置。

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
相关推荐
weixin_395448919 小时前
排查流程啊啊啊
人工智能·深度学习·机器学习
Acrelhuang10 小时前
独立监测 + 集团管控 安科瑞连锁餐饮能源方案全链路提效-安科瑞黄安南
人工智能
laplace012310 小时前
Clawdbot 部署到飞书(飞连)使用教程(完整版)
人工智能·笔记·agent·rag·clawdbot
是小蟹呀^10 小时前
卷积神经网络(CNN):卷积操作
人工智能·神经网络·cnn
DN202010 小时前
AI销售机器人:节日祝福转化率提升30倍
人工智能·python·深度学习·机器学习·机器人·节日
香芋Yu10 小时前
【大模型教程——第二部分:Transformer架构揭秘】第2章:模型家族谱系:从编码器到解码器 (Model Architectures)
深度学习·架构·transformer
爱喝可乐的老王10 小时前
PyTorch简介与安装
人工智能·pytorch·python
deephub10 小时前
用 PyTorch 实现 LLM-JEPA:不预测 token,预测嵌入
人工智能·pytorch·python·深度学习·大语言模型
量子-Alex10 小时前
【多模态大模型】Qwen2-VL项目代码初步解析
人工智能