用于实现自组织映射的库sompy

2024-09-28 05:25:39 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经安装了库sompy,但在导入它时,出现了下一个错误:

  import sompy
  
  ImportErrorTraceback (most recent call last)
  <ipython-input-86-97d518356b3c> in <module>
  ----> 1 import sompy

  /opt/conda/lib/python3.8/site-packages/sompy/__init__.py in <module>
  1 
  ----> 2 from sompy import SOM

  ImportError: cannot import name 'SOM' from partially initialized module 'sompy' (most likely due to a circular import) (/opt/conda/lib/python3.8/site-packages/sompy/__init__.py)

Tags: infrompyimportmostinitlibpackages
1条回答
网友
1楼 · 发布于 2024-09-28 05:25:39

这个问题已经解释清楚了。解决方案是安装更新版本的sompy:

pip3 install git+https://github.com/compmonks/SOMPY.git

还有其他更为最新的SOM软件包,例如minisomsusi

相关问题 更多 >

    热门问题