-
Notifications
You must be signed in to change notification settings - Fork 0
/
installConda.sh
38 lines (29 loc) · 1.25 KB
/
installConda.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
NAME="Anaconda3"
VER="2019.07"
OS="Linux-x86_64"
sudo apt-get update
mkdir $HOME/.conda
#mkdir ~/tmp && cd "$_"
wget https://repo.anaconda.com/archive/$NAME-$VER-$OS.sh -O $HOME/anaconda.sh
bash $HOME/anaconda.sh -b -p $HOME/$NAME && sudo rm $HOME/anaconda.sh
# Enable Conda for all users.
echo "export PATH=\$HOME/Anaconda3/bin:\$PATH" >> $HOME/.bashrc
sudo ln -s $HOME/$NAME/etc/profile.d/conda.sh /etc/profile.d/conda.sh
source .bashrc
# With this activated shell, you can then install conda’s shell functions for easier access in the future:
# conda init bash
eval "$(conda shell.bash hook)"
# Deactivate conda’s base environment on startup:
conda config --set auto_activate_base false
# rm -- "$0"
# exec bash
# Quick Install:
# wget 'https://raw.githubusercontent.com/makramjandar/PyTorchSpeedUpAndOptimize/master/installConda.sh' && . conda.sh
# Ref:
# https://www.digitalocean.com/community/tutorials/how-to-install-the-anaconda-python-distribution-on-ubuntu-18-04
# https://github.com/ContinuumIO/anaconda-issues/issues/11154
# https://github.com/ContinuumIO/anaconda-issues/issues/11159
# https://medium.com/@chadlagore/conda-environments-with-docker-82cdc9d25754
# https://github.com/ContinuumIO/docker-images
# https://hub.docker.com/u/conda