-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconda_install.sh
executable file
·30 lines (29 loc) · 1.12 KB
/
conda_install.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
#!/bin/bash
# create a conda env `server_c` required for train, test, and inference
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
echo "darwin system conda install starting for GPU mode"
yes | conda create -n fastseg python=3.7
eval "$(conda shell.bash hook)"
conda activate fastseg
yes | pip install -r requirements.txt
elif [[ "$OSTYPE" == "darwin"* ]]; then
echo "darwin system conda install starting (Only avai in CPU)"
yes | conda create -n fastseg python=3.7
eval "$(conda shell.bash hook)"
conda activate fastseg
yes | pip install -r requirements.txt
elif [[ "$OSTYPE" == "cygwin" ]]; then
yes | conda create -n fastseg python=3.7
eval "$(conda shell.bash hook)"
conda activate fastseg
yes | pip install -r requirements.txt
elif [[ "$OSTYPE" == "msys" ]]; then
echo "msys system conda install not implemented"
# Lightweight shell and GNU utilities compiled for Windows (part of MinGW)
elif [[ "$OSTYPE" == "win32" ]]; then
echo "win32 system conda install not implemented"
elif [[ "$OSTYPE" == "freebsd"* ]]; then
echo "freebsd system conda install not implemented"
else
echo "system unknown"
fi