0

我试图安装 pytorch-geometric 但当我打电话时 import torch_geometric 出现错误:

ImportError: DLL load failed: The specified procedure could not be found.

追溯:

<ipython-input-7-c36e13293883> in <module>
----> 1 import torch_geometric

D:\programs\anaconda\lib\site-packages\torch_geometric\__init__.py in <module>
      4 from .debug import is_debug_enabled, debug, set_debug
      5 import torch_geometric.data
----> 6 import torch_geometric.transforms
      7 import torch_geometric.utils
      8 

D:\programs\anaconda\lib\site-packages\torch_geometric\transforms\__init__.py in <module>
     32 from .two_hop import TwoHop
     33 from .line_graph import LineGraph
---> 34 from .laplacian_lambda_max import LaplacianLambdaMax
     35 from .generate_mesh_normals import GenerateMeshNormals
     36 from .delaunay import Delaunay

D:\programs\anaconda\lib\site-packages\torch_geometric\transforms\laplacian_lambda_max.py in <module>
----> 1 from scipy.sparse.linalg import eigs, eigsh
      2 from torch_geometric.utils import get_laplacian, to_scipy_sparse_matrix
      3 
      4 
      5 class LaplacianLambdaMax(object):

D:\programs\anaconda\lib\site-packages\scipy\sparse\linalg\__init__.py in <module>
    114 from .dsolve import *
    115 from .interface import *
--> 116 from .eigen import *
    117 from .matfuncs import *
    118 from ._onenormest import *

D:\programs\anaconda\lib\site-packages\scipy\sparse\linalg\eigen\__init__.py in <module>
      9 from __future__ import division, print_function, absolute_import
     10 
---> 11 from .arpack import *
     12 from .lobpcg import *
     13 

D:\programs\anaconda\lib\site-packages\scipy\sparse\linalg\eigen\arpack\__init__.py in <module>
     20 from __future__ import division, print_function, absolute_import
     21 
---> 22 from .arpack import *

D:\programs\anaconda\lib\site-packages\scipy\sparse\linalg\eigen\arpack\arpack.py in <module>
     43 __all__ = ['eigs', 'eigsh', 'svds', 'ArpackError', 'ArpackNoConvergence']
     44 
---> 45 from . import _arpack
     46 import numpy as np
     47 import warnings

ImportError: DLL load failed: The specified procedure could not be found.

我的 pytorch 几何版本是:

# Name                    Version                   Build  Channel
# pytorch-geometric         1.7.2           py37_torch_1.9.0_cu111    rusty1s 

火炬版本:

# Name                    Version                   Build  Channel 
# pytorch                   1.9.0           py3.7_cuda11.1_cudnn8_0    pytorch 

库达版本:

nvcc: NVIDIA (R) Cuda compiler driver     
Copyright (c) 2005-2020 NVIDIA Corporation                                                                              
Built on Tue_Sep_15_19:12:04_Pacific_Daylight_Time_2020                                                                 
Cuda compilation tools, release 11.1, V11.1.74                                                                          
Build cuda_11.1.relgpu_drvr455TC455_06.29069683_0 

我错过了什么吗?这里有人遇到过这个问题吗?

4

1 回答 1

0

正如 talonmies 所说,它与 scipy 安装有关。无法重新安装或升级或使用 pip。它确实适用于新的虚拟环境。仍然不确定以前的环境有什么问题

于 2021-07-21T06:36:27.023 回答