-
Notifications
You must be signed in to change notification settings - Fork 101
/
setup_env.sh
38 lines (27 loc) · 1006 Bytes
/
setup_env.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
#!/usr/bin/env bash
which conda
if [ "$?" -eq 1 ]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh
chmod +x Miniconda2-latest-Linux-x86_64.sh
./Miniconda2-latest-Linux-x86_64.sh
else
echo "Miniconda already installed"
fi
conda create -n py35_albu python=3.5
source activate py35_albu
pip install -r ./albu/requirements.txt
pip install http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp35-cp35m-manylinux1_x86_64.whl
pip install torchvision
source deactivate
conda create -n py35_ternaus python=3.5
source activate py35_ternaus
pip install -r ./ternaus/requirements.txt
pip install http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp35-cp35m-manylinux1_x86_64.whl
pip install torchvision
source deactivate
conda create -n py27 python=2.7
source activate py27
pip install -r requirements.txt
pip install http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl
pip install torchvision
source deactivate