ModuleNotFoundError:没有名为“ torch_scatter.scatter_cuda”的模块

时间:2019-12-10 20:47:43

标签: python pytorch

运行时出现此错误:

from torch_geometric.data import InMemoryDataset

我的环境: 作业系统:Windows 10 Python版本:3.7 PyTorch版本:1.2.0 CUDA:10 我已经尝试了以下链接中给出的所有选项: https://github.com/rusty1s/pytorch_geometric/issues/633

Traceback (most recent call last):

File "", line 1, in
runfile('C:/Users/Drashti Bhatt/Desktop/New folder/challenge.py', wdir='C:/Users/Drashti Bhatt/Desktop/New folder')

File "C:\Users\Drashti Bhatt\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
execfile(filename, namespace)

File "C:\Users\Drashti Bhatt\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/Users/Drashti Bhatt/Desktop/New folder/challenge.py", line 14, in
from torch_geometric.data import InMemoryDataset

File "C:\Users\Drashti Bhatt\Anaconda3\lib\site-packages\torch_geometric_init_.py", line 2, in
import torch_geometric.nn

File "C:\Users\Drashti Bhatt\Anaconda3\lib\site-packages\torch_geometric\nn_init_.py", line 2, in
from .data_parallel import DataParallel

File "C:\Users\Drashti Bhatt\Anaconda3\lib\site-packages\torch_geometric\nn\data_parallel.py", line 5, in
from torch_geometric.data import Batch

File "C:\Users\Drashti Bhatt\Anaconda3\lib\site-packages\torch_geometric\data_init_.py", line 1, in
from .data import Data

File "C:\Users\Drashti Bhatt\Anaconda3\lib\site-packages\torch_geometric\data\data.py", line 7, in
from torch_sparse import coalesce

File "C:\Users\Drashti Bhatt\Anaconda3\lib\site-packages\torch_sparse_init_.py", line 2, in
from .coalesce import coalesce

File "C:\Users\Drashti Bhatt\Anaconda3\lib\site-packages\torch_sparse\coalesce.py", line 2, in
import torch_scatter

File "C:\Users\Drashti Bhatt\Anaconda3\lib\site-packages\torch_scatter_init_.py", line 3, in
from .mul import scatter_mul

File "C:\Users\Drashti Bhatt\Anaconda3\lib\site-packages\torch_scatter\mul.py", line 3, in
from torch_scatter.utils.ext import get_func

File "C:\Users\Drashti Bhatt\Anaconda3\lib\site-packages\torch_scatter\utils\ext.py", line 5, in
import torch_scatter.scatter_cuda

ModuleNotFoundError: No module named 'torch_scatter.scatter_cuda

0 个答案:

没有答案