Skip to content

Instantly share code, notes, and snippets.

@pacuna
Last active February 27, 2019 04:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pacuna/896a0434a109021dd673d5e66193eca8 to your computer and use it in GitHub Desktop.
Save pacuna/896a0434a109021dd673d5e66193eca8 to your computer and use it in GitHub Desktop.
script
set -x
echo 'export PATH="/opt/conda/bin:$PATH"' >> ~/.bashrc
sudo apt-get update --fix-missing && sudo apt-get install -y wget bzip2 ca-certificates \
libglib2.0-0 libxext6 libsm6 libxrender1 git
wget --quiet https://repo.anaconda.com/archive/Anaconda3-2018.12-Linux-x86_64.sh -O ~/anaconda.sh && \
sudo /bin/bash ~/anaconda.sh -b -p /opt/conda && \
rm ~/anaconda.sh && \
sudo ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
echo "conda activate base" >> ~/.bashrc
. /opt/conda/etc/profile.d/conda.sh
conda activate base
source ~/.bashrc
conda update -n base -c defaults conda --yes
conda install -c anaconda pandas --yes
conda install -c conda-forge black jupyterlab --yes
pip install xgboost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment