-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsetup.sh
executable file
·37 lines (27 loc) · 1013 Bytes
/
setup.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
#!/bin/bash
CONDAENV=ontoemma
# Install conda
if ! (which conda); then
echo "No conda installation found. Installing..."
if [[ $(uname) == "Darwin" ]]; then
wget -nc --continue https://repo.continuum.io/miniconda/Miniconda-3.5.5-MacOSX-x86_64.sh
bash Miniconda-3.5.5-MacOSX-x86_64.sh -b || true
else
wget -nc --continue https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b || true
fi
export PATH=$HOME/miniconda/bin:$HOME/miniconda3/bin:$PATH
fi
source ~/miniconda3/bin/deactivate ${CONDAENV}
conda remove -y --name ${CONDAENV} --all
conda create -n ${CONDAENV} -y python=3.6 pip pytest || true
echo "Activating Conda Environment ----->"
source ~/miniconda3/bin/activate ${CONDAENV}
pip install -r requirements.txt
if [[ $(uname) == "Darwin" ]]; then
conda install -y pytorch torchvision -c soumith
else
conda install -y pytorch torchvision cuda80 -c soumith
fi
python -m spacy download en
python setup.py develop