Skip to content

Instantly share code, notes, and snippets.

@hamishmorgan
Created November 7, 2012 15:38
Show Gist options
  • Save hamishmorgan/4032304 to your computer and use it in GitHub Desktop.
Save hamishmorgan/4032304 to your computer and use it in GitHub Desktop.
# Update your login script with some defaults
touch ~/.profile
chmod +x ~/.profile
echo "module load python/2.7.2" >> ~/.profile
echo "export PATH=$PATH:~/.local/bin" >> ~/.profile
~/.profile
# Install setup-tools locally
wget http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg#md5=fe1f997bc722265116870bc7919059ea
chmod +x setuptools-0.6c11-py2.7.egg
./setuptools-0.6c11-py2.7.egg --prefix ~/.local
# Install pip (another setup tool!!)
easy_install --prefix=~/.local pip
# Install numpy
export LAPACK=
pip install -U --user numpy
# Install nltk
pip install -U --user pyyaml nltk
# Test
python -c "import nltk; print 'NLTK installed';"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment