forked from joamatab/install_new_computer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conda.sh
executable file
·24 lines (21 loc) · 944 Bytes
/
conda.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
#!/bin/bash
# I recommend installing miniconda with pyenv, so you can also install other python versions
echo "checking conda install for python3 64 bits"
if [[ ! -d $HOME/miniconda3 ]]; then
echo "installing conda"
if [[ -d /Applications ]]; then
wget -O 'miniconda3.sh' 'https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh'
else
wget -O 'miniconda3.sh' 'https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh'
fi
bash miniconda3.sh -b
rm miniconda3.sh
# sudo ln -s $HOME/miniconda3/etc/profile.d/conda.sh /etc/profile.d/conda.sh
fi
# sudo ln -sf $HOME/miniconda3/bin/python /usr/local/bin/python
# sudo ln -sf $HOME/miniconda3/bin/pip /usr/local/bin/pip
# cp $HOME/miniconda3/bin/python /usr/local/bin/python
# cp $HOME/miniconda3/bin/pip /usr/local/bin/pip
# conda install -y python=3.6
# ln -sf $HOME/miniconda3/bin/python3.6 /usr/local/bin/python
# conda create -n emopt python=2