使用torch 跑代码遇到 OSError: [WinError 126] 找不到指定的模块。
from KGPool.networks import Net
File "D:\WQ\diamap\KGPool-master\KGPool\networks.py", line 3, in
from torch_geometric.nn import GCNConv
File "D:\Anaconda3\envs\MetaDialog-master\lib\site-packages\torch_geometric_init.py", line 4, in
import torch_geometric.data
File "D:\Anaconda3\envs\MetaDialog-master\lib\site-packages\torch_geometric\data_init.py", line 1, in
from .data import Data
File "D:\Anaconda3\envs\MetaDialog-master\lib\site-packages\torch_geometric\data\data.py", line 3, in
from torch_geometric.typing import OptTensor, NodeType, EdgeType
File "D:\Anaconda3\envs\MetaDialog-master\lib\site-packages\torch_geometric\typing.py", line 4, in
from torch_sparse import SparseTensor
File "D:\Anaconda3\envs\MetaDialog-master\lib\site-packages\torch_sparse_init.py", line 37, in
from .storage import SparseStorage # noqa
File "D:\Anaconda3\envs\MetaDialog-master\lib\site-packages\torch_sparse\storage.py", line 5, in
from torch_scatter import segment_csr, scatter_add
File "D:\Anaconda3\envs\MetaDialog-master\lib\site-packages\torch_scatter_init.py", line 16, in
torch.ops.load_library(spec.origin)
File "D:\Anaconda3\envs\MetaDialog-master\lib\site-packages\torch_ops.py", line 104, in load_library
ctypes.CDLL(path)
File "D:\Anaconda3\envs\MetaDialog-master\lib\ctypes_init_.py", line 348, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] 找不到指定的模块。