Last active
April 6, 2018 02:38
-
-
Save Samreay/ac944d846f8e4e894ea4a9c0a119b4eb to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env bash | |
PYTHON_VERSION=3.6 | |
cd ~ | |
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh | |
bash miniconda.sh -b -p $HOME/miniconda | |
export PATH=$HOME/miniconda/bin:$PATH | |
hash -r | |
conda config --set always_yes yes --set changeps1 no | |
conda update -q conda | |
conda create --yes -n mypython python=$PYTHON_VERSION numpy scipy pytest setuptools pip cython matplotlib astropy | |
echo "Add to .bashrc: export PATH=\$HOME/miniconda/bin:\$PATH" | |
echo "Add to .bashrc: source activate mypython" | |
echo "Make sure in your .bash_profile, .bashrc, etc that you arent adding other pythons to the pythonpath or path" | |
echo "This includes loading python modules. Dont do it. Just source activite mypthon in your jobscript, just like in your bashrc" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment