Tuesday, January 20, 2015

[solved] No module error in python when trying to import nltk package

Try changing the PYTHONPATHenvironment variable. If you are using BASH the below should work. Other Linux shells will be slightly different in how they assign environment variables.
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages

No comments:

Post a Comment