Created
November 7, 2012 15:38
-
-
Save hamishmorgan/4032304 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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