GraphLab Create "ImportError: No module named graphlab"

zkurtz picture zkurtz · Sep 21, 2014 · Viewed 34.3k times · Source

I followed these instructions to set up GraphLab on my Ubuntu machine. At the end, I opened Python 2.7.6 and ran the first of the test lines import graphlab as gl. This gave me

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named graphlab

How can I begin to diagnose this?

Details:

I ran python -V from a terminal, and it returned me Python 2.7.6.

In /usr/bin I find the following pyth* entries ... I wonder if something somewhere pointed at the wrong version:

python     python2.7-config  python3.4   python-config
python2    python2-config    python3.4m  pythontex
python2.7  python3           python3m    pythontex3

Answer

Dr. Java picture Dr. Java · Oct 15, 2015

The Dato Graphlab Create installer did not actually install graphlab on my Mac (El Capitan). I did the following (Anaconda is installed) in a terminal window:

% pip install graphlab-create

That subsequently installed Graphlab Create. You can then easily verify:

% python
Python 2.7.10 |Continuum Analytics, Inc.| (default, Sep 15 2015, 14:29:08)
[GCC 4.2.1 (Apple Inc. build 5577)] 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 graphlab
>>>

I've noticed that occasionally, Python will forget that Graphlab Create is installed. A repeat of the above 'pip' command will cause it to remember.