-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
47 lines (47 loc) · 2.92 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#echo "-------------------------------------------------------------------------------------------------"
#echo "downloading ROOT now"
#echo "-------------------------------------------------------------------------------------------------"
#wget https://root.cern.ch/download/root_v6.10.00.Linux-ubuntu16-x86_64-gcc5.4.tar.gz
#echo "-------------------------------------------------------------------------------------------------"
#echo "unzipping ROOT archive"
#echo "-------------------------------------------------------------------------------------------------"
#tar zxvf root_v6.10.00.Linux-ubuntu16-x86_64-gcc5.4.tar.gz
#echo "-------------------------------------------------------------------------------------------------"
#echo "setting up ROOT environment"
#echo "-------------------------------------------------------------------------------------------------"
#. root/bin/thisroot.sh
echo "-------------------------------------------------------------------------------------------------"
echo "installing python-pip and virtualenv"
echo "-------------------------------------------------------------------------------------------------"
sudo apt-get install python-pip python-dev python-virtualenv python-tk
echo "-------------------------------------------------------------------------------------------------"
echo "starting setup of virtual environment and tensorflow installation"
echo "-------------------------------------------------------------------------------------------------"
virtualenv tensorflow_tut --system-site-packages
cd tensorflow_tut
source bin/activate
pip install --upgrade pip
pip install --upgrade tensorflow
pip install --upgrade scipy
pip install --upgrade matplotlib
#pip install --upgrade rootpy
#NOTMVA=1 pip2 install --upgrade root_numpy
#pip install pandas
#pip install tables
#pip install scikit-learn
cd ..
echo "-------------------------------------------------------------------------------------------------"
echo "executing smallest tensorflow test program"
echo "-------------------------------------------------------------------------------------------------"
python tensorflow_test.py
echo "-------------------------------------------------------------------------------------------------"
echo "deactivating virtual environment before exercive start"
echo "-------------------------------------------------------------------------------------------------"
deactivate
#echo "-------------------------------------------------------------------------------------------------"
#echo "deleting downloaded root archive"
#echo "-------------------------------------------------------------------------------------------------"
#rm root_v6.10.00.Linux-ubuntu16-x86_64-gcc5.4.tar.gz
echo "-------------------------------------------------------------------------------------------------"
echo "succesfully finished installation"
echo "-------------------------------------------------------------------------------------------------"