PyTorch torch_sparse installation without CUDA(没有 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 安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:没有 CUDA 的 PyTorch torch_sparse 安装


基础教程推荐
- 筛选NumPy数组 2022-01-01
- 如何让 python 脚本监听来自另一个脚本的输入 2022-01-01
- 何时使用 os.name、sys.platform 或 platform.system? 2022-01-01
- Python kivy 入口点 inflateRest2 无法定位 libpng16-16.dll 2022-01-01
- 用于分类数据的跳跃记号标签 2022-01-01
- 在 Python 中,如果我在一个“with"中返回.块,文件还会关闭吗? 2022-01-01
- 线程时出现 msgbox 错误,GUI 块 2022-01-01
- Dask.array.套用_沿_轴:由于额外的元素([1]),使用dask.array的每一行作为另一个函数的输入失败 2022-01-01
- 使用PyInstaller后在Windows中打开可执行文件时出错 2022-01-01
- 如何在海运重新绘制中自定义标题和y标签 2022-01-01