From 876c3564357b73d4181eb14f2ab93c053709ec0e Mon Sep 17 00:00:00 2001 From: Marianne Linhares Monteiro Date: Mon, 14 Aug 2017 14:08:37 -0400 Subject: [PATCH 1/3] Create install_dependencies.sh --- install_dependencies.sh | 45 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 install_dependencies.sh diff --git a/install_dependencies.sh b/install_dependencies.sh new file mode 100644 index 0000000..ba13249 --- /dev/null +++ b/install_dependencies.sh @@ -0,0 +1,45 @@ +#!/bin/bash + +PYTHON_VERSION="2 and 3" + +function p2 { + apt-get install python-pip + python2 -m pip install --upgrade pip + python2 -m pip install jupyter numpy pandas matplotlib pillow +} + +function p3 { + apt-get install python3-pip + python3 -m pip install --upgrade pip + python3 -m pip install jupyter numpy pandas matplotlib pillow +} + +while [[ $# -gt 1 ]] +do + key="$1" + + case $key in + --python_version) + PYTHON_VERSION="$2" + shift # past argument + ;; + *) + # unknown option + ;; + esac + + shift # past argument or value +done + +echo PYTHON_VERSION = "${PYTHON_VERSION}" + +if [ "${PYTHON_VERSION}" == "2 and 3" ]; then + p2 + p3 +elif [ "${PYTHON_VERSION}" == "2" ]; then + p2 +elif [ "${PYTHON_VERSION}" == "3" ]; then + p3 +else + echo 'bad argument' +fi From 237ada5339e6e188df67c189d5438c14a145219d Mon Sep 17 00:00:00 2001 From: Marianne Linhares Monteiro Date: Mon, 14 Aug 2017 14:15:21 -0400 Subject: [PATCH 2/3] Update README.md to include install_dependencies --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 116acd0..e542842 100644 --- a/README.md +++ b/README.md @@ -26,10 +26,30 @@ This approach is a good option if you have difficulty installing TensorFlow dire --- If you get stuck, please refer to the full installation [instructions](https://www.tensorflow.org/install/) on tensorflow.org. +# Install other Dependencies + +* **For Linux only**, run: `$ sudo install_dependencies.sh --python_version (2 or 3)`, python_version is an optional argument the script will install the dependencies for both versions of Python 2 and 3 if not explictly defined. For more details check [install_dependices.sh](install_dependencies.sh). + + Or Install dependencies manyally: + * `python2 -m pip install jupyter numpy pandas matplotlib pillow` + * `python3 -m pip install jupyter numpy pandas matplotlib pillow` + +For other SOs check the next section. + +**If you are not familiar with [Jupyter notebooks](http://jupyter.readthedocs.io/en/latest/index.html) please visit the website and learn more about it.** + +## Test if everything is working properly + +1. Clone this repo or download it +2. cd tensorflow-workshop +3. jupyter notebook +4. run test_install.ipynb +5. If you see any errors with the libraries, make sure you have them installed and run test_install.ipynb again. + # Want to report a bug? Thanks! Can you please file an issue, or even better, a pull request? We'll be doing this workshop a couple times, and future developers will appreciate your help. - - - -General disclaimer, this is my personal repo and not an official Google product. If you'd like to use this code, say, to build a mission critical component of your giant space laser, you should know there's no warranty, etc. \ No newline at end of file +General disclaimer, this is my personal repo and not an official Google product. If you'd like to use this code, say, to build a mission critical component of your giant space laser, you should know there's no warranty, etc. From 4ff2b1ff273a5cf177fd1f8498a4218e9e48a2c9 Mon Sep 17 00:00:00 2001 From: Marianne Linhares Monteiro Date: Tue, 15 Aug 2017 10:12:15 -0400 Subject: [PATCH 3/3] Fixing typo --- README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index 06cbac9..6f1301a 100644 --- a/README.md +++ b/README.md @@ -18,11 +18,6 @@ This approach is recommended if you prefer the smallest download. If you experie * [How-to install the RC using pip.](setup/install-pip.md) - -1. [Run the TensorFlow Docker image on your laptop.](setup/install-docker.md) - -1. [Run the TensorFlow Docker image on a Cloud-based VM.](setup/install-cloud.md) This is a good option if you have difficulty using Docker on your laptop. - --- If you get stuck, please refer to the full installation [instructions](https://www.tensorflow.org/install/) on tensorflow.org. @@ -51,4 +46,4 @@ For other OS check the next section. Thanks! Can you please file an issue, or even better, a pull request? We'll be doing this workshop a couple times, and future developers will appreciate your help. - - - -General disclaimer, this is my personal repo and not an official Google product. If you'd like to use this code, say, to build a mission critical component of your giant space laser, you should know there's no warranty, etc. \ No newline at end of file +General disclaimer, this is my personal repo and not an official Google product. If you'd like to use this code, say, to build a mission critical component of your giant space laser, you should know there's no warranty, etc.