Skip to content

Instantly share code, notes, and snippets.

@yhtgrace
Created April 24, 2015 15:49
Show Gist options
  • Save yhtgrace/cd63982bbd8f2f1e73c1 to your computer and use it in GitHub Desktop.
Save yhtgrace/cd63982bbd8f2f1e73c1 to your computer and use it in GitHub Desktop.
Fixing PYTHONPATH for python 3.4 in bin/activate
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment