Tell python where to find NLTK from Eniac


For those who cannot find NLTK from eniac, you need to tell python where to look for it.
Easiest way is to type the following on the terminal:

export PYTHONPATH=/home1/c/cis530/Software/python2.6/site-packages
export NLTK_DATA=/home1/c/cis530/data

This should work. But, it will only work on the same session, i.e. if you log out of eniac and log back in, then you will need to write the above statement again. A more permanent solution is:

1. go to your home directory on eniac

2. open the ".bashrc" file using your favorite text editor. Create the file if it does not exist. That's bashrc, without the quotes.

3. Add these lines to the end of the file:

export PYTHONPATH=/home1/c/cis530/Software/python2.6/site-packages
export NLTK_DATA=/home1/c/cis530/data

This should now tell python where to look for packages we are likely to use in the course.
For it to work though, you will have to the next step.

4. Save this file, log out, and log back into eniac. Everything should be set now. To test, start up python, and try importing nltk.