没有 CUDA 的 PyTorch torch_sparse 安装 [英] PyTorch torch_sparse installation without CUDA

查看:48
本文介绍了没有 CUDA 的 PyTorch torch_sparse 安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 PyTorch 的新手,我遇到了一个问题,即我无法正确安装我的 torch_sparse 模块.一般来说,我想使用模块 torch_geometric - 我已经安装了这个模块.但是,在程序执行期间,我不断收到错误 ModuleNotFoundError: No module named ‘torch_sparse’ .

I am new in PyTorch and I have faced one issue, namely I cannot get my torch_sparse module properly installed. In general, I wanted to use module torch_geometric - this I have installed. However, when during the execution of the program I keep receiving the error ModuleNotFoundError: No module named ‘torch_sparse’ .

我尝试安装它,但是当我在 anaconda 中使用命令 pip install torch-sparse 时,出现错误:

I try to intall it, but when I use the command pip install torch-sparse in anaconda, I get an error:

用户警告:CUDA 初始化:在您的系统上找不到 NVIDIA 驱动程序.

UserWarning: CUDA initialization:Found no NVIDIA driver on your system.

我的系统没有 CUDA.那么没有它我怎么能安装 torch_sparse 模块呢?

My system does not have a CUDA. So how could I install torch_sparse module without it?

先谢谢你!

亲切的问候

罗斯蒂斯拉夫

推荐答案

pytorch_geometric 安装说明 你必须先安装依赖项,然后torch_geometric.

As outlined in in pytorch_geometric installation instructions you have to install dependencies first and torch_geometric after that.

对于 PyTorch 1.7.0 和 CPU:

For PyTorch 1.7.0 and CPU:

pip install --no-index torch-scatter -f https://pytorch-geometric.com/whl/torch-1.7.0+cpu.html
pip install --no-index torch-sparse -f https://pytorch-geometric.com/whl/torch-1.7.0+cpu.html
pip install --no-index torch-cluster -f https://pytorch-geometric.com/whl/torch-1.7.0+cpu.html
pip install --no-index torch-spline-conv -f https://pytorch-geometric.com/whl/torch-1.7.0+cpu.html
pip install torch-geometric

请注意每页最后的torch-1.7.0+cpu

这篇关于没有 CUDA 的 PyTorch torch_sparse 安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆