Last active
December 8, 2017 12:25
-
-
Save basnijholt/963485f903504926012847841a405651 to your computer and use it in GitHub Desktop.
Install conda with correct quantumtinkerer environments
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
#/bin/bash | |
# run this script with: | |
# nohup ~/Work/install_conda.sh > /dev/null 2>&1 & | |
export CONDA_DIR="${HOME}/miniconda3" | |
# Create a temporary folder | |
mkdir -p ~/tmp && cd ~/tmp | |
# Remove the old miniconda | |
rm -fr $CONDA_DIR && mkdir -p $CONDA_DIR | |
# Download miniconda | |
wget --quiet https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh | |
# Install Miniconda and add channels | |
/bin/bash Miniconda3-latest-Linux-x86_64.sh -f -b -p $CONDA_DIR | |
$CONDA_DIR/bin/conda config --system --add channels conda-forge | |
$CONDA_DIR/bin/conda config --system --set auto_update_conda false | |
# Clone quantum-tinkerer/research-docker to get the latest envs.yml | |
git clone https://github.com/quantum-tinkerer/research-docker.git | |
# Update the root environment | |
$CONDA_DIR/bin/conda env update -n root -f research-docker/python3.yml | |
# Add a dev environment (e.g. with dev kwant and holoviews) | |
$CONDA_DIR/bin/conda env create -p $CONDA_DIR/envs/dev -f research-docker/dev.yml | |
# Cleanup | |
$CONDA_DIR/bin/conda clean -tipsy | |
rm -fr ~/tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment