A repository containing an automatic installation of two different conda environments (py27 and py37) for easy user setup.
Clone the repository, make the script executable, and then run it.
git clone https://github.com/Simoes-Costa-Lab/conda_setup/
cd conda_setup
chmod +x ./install.sh
./install.sh
Reload your shell
Update the repository, then update the environment.
cd conda_setup
git pull
conda env update -n py37 --file py37environment.yml #can --prune if you want.
conda env update -n py27 --file py27environment.yml
Update packages for each environment
conda update --all
pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
conda activate py27
conda update --all
pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
Write out the environment to a file
conda env export -n py37 > py37environment.yml
conda env export -n py27 > py27environment.yml
Then upload this to github, don't forget to update the prefix with $HOME.