在Jupyter Notebook中导入TensorLy时出现导入错误



我正在尝试在Jupyter笔记本中导入TensorLy作为import tensorly as tl但是我遇到了导入错误。我在本地机器上安装了 TensorLy。

完整回溯:

ImportError                               Traceback (most recent call last)
<ipython-input-5-7285d7cdd476> in <module>
----> 1 import tensorly as tl
c:usersjaydeep borkardesktoptensorlytensorly__init__.py in     <module>
2 import sys
3 
----> 4 from .base import unfold, fold
5 from .base import tensor_to_vec, vec_to_tensor
6 from .base import partial_unfold, partial_fold
c:usersjaydeep borkardesktoptensorlytensorlybase.py in <module>
----> 1 from . import backend as T
2 
3 def tensor_to_vec(tensor):
4     """Vectorises a tensor
5 
c:usersjaydeep borkardesktoptensorlytensorlybackend__init__.py in <module>
1 import warnings
----> 2 from .core import Backend
3 import importlib
4 import os
5 import sys
c:usersjaydeep borkardesktoptensorlytensorlybackendcore.py in <module>
9 import numpy as np
10 import scipy.linalg
---> 11 import scipy.sparse.linalg
12 
13 
C:Anaconda3libsite-packagesscipysparselinalg__init__.py in <module>
115 from .dsolve import *
116 from .interface import *
--> 117 from .eigen import *
118 from .matfuncs import *
119 from ._onenormest import *
C:Anaconda3libsite-packagesscipysparselinalgeigen__init__.py in <module>
9 from __future__ import division, print_function, absolute_import
10 
---> 11 from .arpack import *
12 from .lobpcg import *
13 
C:Anaconda3libsite-packagesscipysparselinalgeigenarpack__init__.py in <module>
20 from __future__ import division, print_function, absolute_import
21 
---> 22 from .arpack import *
C:Anaconda3libsite-packagesscipysparselinalgeigenarpackarpack.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.

可能的解决方案是什么?

您是否正在使用新的 conda 环境?如果是这样,请尝试一下。

相关内容

  • 没有找到相关文章

最新更新