GraphLab Create "ImportError: No module named graphlab"
Question: I followed [these instructions](http://graphlab.com/products/create/quick-
start-guide.html) 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: Another option is to use `virtualenvwrapper` for the easy creation and
application of virtual environments. For example, following [this
documentation](http://virtualenvwrapper.readthedocs.org/en/latest/install.html),
start with installation:

    
    
    sudo pip install virtualenvwrapper
    

Open your `.bashrc` settings file, for example run `gedit .bashrc` and append
the following lines to the bottom of it:

    
    
    export WORKON_HOME=$HOME/.virtualenvs
    export PROJECT_HOME=$HOME/Devel
    source /usr/local/bin/virtualenvwrapper.sh
    

Restart your terminal window, and then you can make your virtual environment,
say call it "test":

    
    
    mkvirtualenv test
    

Now test is a virtual environment, and your are in it (i.e., `test` is
"activated" currently). To put GraphLab in `test`,

    
    
    pip install graphlab-create
    

Similarly, you can install other python toolkits in `test` by using `pip`, and
any python program you run from within `test` will be able to see only the
python toolkits that are installed here.

