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 安装
基础教程推荐
- 在 Python 中将货币解析为数字 2022-01-01
- Python,确定字符串是否应转换为 Int 或 Float 2022-01-01
- 在 Django Admin 中使用内联 OneToOneField 2022-01-01
- matplotlib 设置 yaxis 标签大小 2022-01-01
- 究竟什么是“容器"?在蟒蛇?(以及所有的 python 容器类型是什么?) 2022-01-01
- kivy 应用程序中的一个简单网页作为小部件 2022-01-01
- 对多索引数据帧的列进行排序 2022-01-01
- Python 中是否有任何支持将长字符串转储为块文字或折叠块的 yaml 库? 2022-01-01
- 比较两个文本文件以找出差异并将它们输出到新的文本文件 2022-01-01
- Kivy 使用 opencv.调整图像大小 2022-01-01
