2016-11-03 69 views
3

我在mac-osx上使用anaconda并安装了python-igraph。目前无法导入igraph。没有模块名为igraph - 错误

下面是所显示的错误:

的Python 2.7.12 |阿纳康达4.1.1(x86_64的)|

import igraph ---- ImportError: No module named igraph

它存在于这条道路 - /Users/pc_name/anaconda/lib/python2.7/site-packages,我觉得只有python_igraph-0.7.1.post6-py2.7.egg -info文件。

我尝试了很多可能的事情,这些事情在堆栈溢出时可用于其他问题。我怎么解决这个问题?

回答

1

你还没有提到你如何安装python-igraph,所以很难说什么。但我很确定this package很好地工作。

0

1)在我的电脑上的python-的igraph主目录中运行以下命令:

conda install -c marufr python-igraph 

2)在新的终端窗口揭开序幕蟒蛇:

$python 
Python 2.7.13 |Anaconda 4.3.1 (x86_64)| (default, Dec 20 2016, 23:05:08) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin 
Type "help", "copyright", "credits" or "license" for more information. 
Anaconda is brought to you by Continuum Analytics. 
Please check out: http://continuum.io/thanks and https://anaconda.org 
>>> import igraph 
>>> 

我希望这帮助

相关问题