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中从Azure BLOB存储中读取文件 2022-01-01
- 在同一图形上绘制Bokeh的烛台和音量条 2022-01-01
- 无法导入 Pytorch [WinError 126] 找不到指定的模块 2022-01-01
- 包装空间模型 2022-01-01
- PermissionError: pip 从 8.1.1 升级到 8.1.2 2022-01-01
- 求两个直方图的卷积 2022-01-01
- PANDA VALUE_COUNTS包含GROUP BY之前的所有值 2022-01-01
- 修改列表中的数据帧不起作用 2022-01-01
- 使用大型矩阵时禁止 Pycharm 输出中的自动换行符 2022-01-01
- Plotly:如何设置绘图图形的样式,使其不显示缺失日期的间隙? 2022-01-01
