Skip to content

Instantly share code, notes, and snippets.

@hussius
Last active January 13, 2019 03:21
Show Gist options
  • Save hussius/a94ab500ea7ccbfc2de8ab9a50854bd8 to your computer and use it in GitHub Desktop.
Save hussius/a94ab500ea7ccbfc2de8ab9a50854bd8 to your computer and use it in GitHub Desktop.
1. Install appropriate version of the Tensorflow (Python) framework from https://www.tensorflow.org/versions/r0.12/get_started/os_setup.html
In my case (Mac OS X 10.11), I did:
- Get the .whl file (this is more likely to work than a direct pip install)
wget https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.11.0-py3-none-any.whl
- Install using non-Anaconda pip
/usr/local/bin/pip3 install tensorflow-0.11.0-py3-none-any.whl_
- Verify installation using non-Anaconda Python (in my case Homebrew Python3)
/usr/local/Cellar/python3/3.5.1/bin/python3 and try "import tensorflow as tf"
2. Open R and install the Tensorflow package. You need to point to the location of the Python version used.
- Set the location of the Python executable
(In my case I first had to make a symbolic link from /usr/local/Cellar/python3/3.5.1/bin/python3 to
/usr/local/Cellar/python3/3.5.1/bin/python)
Sys.setenv(TENSORFLOW_PYTHON="/usr/local/Cellar/python3/3.5.1/bin/python")
- Install from Github
devtools::install_github("rstudio/tensorflow")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment