【问题标题】:Error while importing igraph导入 igraph 时出错
【发布时间】:2018-03-26 12:47:32
【问题描述】:

我在 Windows 7 上使用 Python 3.6,我遇到了 igraph 包的问题。我在尝试使用pip 安装它时遇到了错误,所以我决定从.whl 文件安装它。不幸的是,我找不到适合 Python 3.6 的版本,所以我下载了另一个版本并更改了文件名,使它看起来像是为 Python 3.6 设计的。安装成功,但是当我尝试运行使用igraph 模块的脚本时 - 出现以下错误消息:

Traceback (most recent call last):
  File "C:/Users/Jarek/Documents/Studia/Programowanie/Python na studiach/Analysis of Unstructured Data/List2.py", line 6, in <module>
    import igraph as ig
  File "C:\Users\Jarek\AppData\Local\Programs\Python\Python36-32\lib\site-packages\igraph\__init__.py", line 34, in <module>
    from igraph._igraph import *
ModuleNotFoundError: No module named 'igraph._igraph'

我在Python igraph import error on Windows 下遇到了一个非常相似的问题 但那里没有答案。我也看过 No module named 'igraph._igraph' 但那里给出的建议对我没有帮助(或者我不知道如何正确应用它)。

任何帮助将不胜感激。提前致谢。

【问题讨论】:

    标签: python igraph python-wheel


    【解决方案1】:

    我找不到适合 Python 3.6 的版本,因此我下载了另一个版本并更改了文件名,使其看起来像是为 Python 3.6 设计的。

    所以这个技巧没有奏效。使用 Python 2.6 或 2.7。或者从源代码编译。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-09-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多