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 安装
基础教程推荐
- Discord.py 缺少必需的参数 2022-01-01
- numpy float:比算术运算中内置的慢 10 倍? 2022-01-01
- 与常规 dict 相比,Python manager.dict() 非常慢 2022-01-01
- 在 Celery 工作人员中捕获 Heroku SIGTERM 以优雅地关 2022-01-01
- 将 x 轴刻度更改为自定义字符串 2022-01-01
- 由Python将MP3转换为MIDI(类型错误:无法加载插件:mtg-Melodia:Melodia) 2022-01-01
- 尝试制作WhatsApp机器人 2022-01-01
- pyserial - 可以从线程 a 写入串行端口,是否阻塞从线程 b 读取? 2022-01-01
- 用 Python 编写 Fortran 无格式文件 2022-01-01
- 使用生成器和迭代器时 Python 多循环失败 2022-01-01
