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.35 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 \
pdbfixer \
rdkit \
joblib \
six \
scikit-learn \
networkx \
pillow \
pandas \
nose \
nose-timer \
flaky \
zlib \
requests \
xgboost \
simdna \
pbr \
setuptools \
biopython \
numpy
yes | pip install $tensorflow==1.14.0