-
Notifications
You must be signed in to change notification settings - Fork 18
/
setup.sh
98 lines (54 loc) · 2.4 KB
/
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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#!/bin/bash
# only need to run this script with the command (do not type the #)
# bash setup.sh
echo "First checking the Python version"
python --version
echo "--------------------------------------------------------------"
echo ". "
echo "Now checking is pip is installed"
pip list
echo "--------------------------------------------------------------"
echo ". "
echo "next list this directory"
pwd
ls -lah
echo "--------------------------------------------------------------"
echo "Some other useful commands are cd cd .. dir ls pwd "
echo "."
echo "Installing PIP and Virtual Environment"
sudo apt-get install python-pip python-dev python-virtualenv
echo "--------------------------------------------------------------"
echo ". "
echo "make the tensorflow environment"
virtualenv --system-site-packages ~/virtual-tf
echo "--------------------------------------------------------------"
echo ". "
echo "Activate the environemtn use deactivate to get your cursor back"
source ~/virtual-tf/bin/activate
echo "--------------------------------------------------------------"
echo ". "
echo "Now intall tensorFlow into the enviroment"
pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
echo "--------------------------------------------------------------"
echo ". "
echo "Unfortunately on cloud 9 Pip hides the TensorFlow folder so lets clone it for our use"
echo "Kind of wasteful but it isn't on our computer anyway"
deactivate
git clone --recurse-submodules https://github.com/tensorflow/tensorflow
echo "--------------------------------------------------------------"
echo ". "
echo "--------------------------------------------------------------"
echo ". "
echo "--------------------------------------------------------------"
echo "You can close this window by clicking the close x"
echo "Right click rocksetta files and select run "
echo "you can also run them manually by entering the virtual environment"
echo "source ~/virtual-tf/bin/activate "
echo "Then bash rocksetta????.sh"
echo "deactivate to get out of the virtual enviroment"
echo "-----------------------------------------"
echo ""
echo "If you have made it this far the installation has finished"
echo "SETUP.SH HAS FINISHED INSTALLING. You can close this terminal window by clicking the x"
echo "-----------------------------------------"
echo ""