Skip to content

Instantly share code, notes, and snippets.

@yhtgrace
Created April 24, 2015 15:49
Show Gist options
  • Select an option

  • Save yhtgrace/cd63982bbd8f2f1e73c1 to your computer and use it in GitHub Desktop.

Select an option

Save yhtgrace/cd63982bbd8f2f1e73c1 to your computer and use it in GitHub Desktop.

Revisions

  1. yhtgrace created this gist Apr 24, 2015.
    10 changes: 10 additions & 0 deletions pythonpath-fix
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    # with pyvenv, activating my python 3.4 environment and running jupyter notebook
    # gives the following error

    # Your PYTHONPATH points to a site-packages dir for Python 2.x but you are running Python 3.x!
    # PYTHONPATH is currently: "/usr/local/lib/python2.7/site-packages:"
    # You should `unset PYTHONPATH` to fix this.

    # To fix this, append this to the end of the bin/activate file

    export PYTHONPATH=/usr/local/lib/python3.4/site-packages