forked from deepchem/deepchem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_deepchem_conda.sh
66 lines (60 loc) · 1.45 KB
/
install_deepchem_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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env bash
# Used to make a conda environment with deepchem
# Change commented out line For gpu tensorflow
#export tensorflow=tensorflow-gpu
export tensorflow=tensorflow
if [ -z "$gpu" ]
then
export tensorflow=tensorflow
echo "Using Tensorflow (CPU MODE) by default."
elif [ "$gpu" == 1 ]
then
export tensorflow=tensorflow-gpu
echo "Using Tensorflow (GPU MODE)."
else
echo "Using Tensorflow (CPU MODE) by default."
fi
if [ -z "$python_version" ]
then
echo "Using python 3.5 by default"
export python_version=3.5
else
echo "Using python "$python_version". But recommended to use python 3.5."
fi
if [ -z "$1" ];
then
echo "Installing DeepChem in current env"
else
export envname=$1
conda create -y --name $envname python=$python_version
source activate $envname
fi
unamestr=`uname`
if [[ "$unamestr" == 'Darwin' ]]; then
source activate root
conda install -y -q conda=4.3.25
source activate $envname
fi
yes | pip install --upgrade pip
conda install -y -q -c deepchem -c rdkit -c conda-forge -c omnia \
mdtraj=1.9.1 \
pdbfixer \
rdkit \
joblib=0.11 \
six=1.11.0 \
scikit-learn=0.19.1 \
networkx=2.1 \
pillow \
pandas=0.22.0 \
nose=1.3.7 \
nose-timer=0.7.0 \
flaky=3.3.0 \
zlib=1.2.11 \
requests=2.18.4 \
xgboost=0.6a2 \
simdna=0.4.2 \
pbr=3.1.1 \
setuptools=39.0.1 \
biopython=1.71 \
numpy=1.14
yes | pip install $tensorflow==1.13.1