Skip to content

Instantly share code, notes, and snippets.

@arcaduf
Last active September 6, 2017 10:23
Show Gist options
  • Save arcaduf/65843a71339ef902b27ba3074e75874a to your computer and use it in GitHub Desktop.
Save arcaduf/65843a71339ef902b27ba3074e75874a to your computer and use it in GitHub Desktop.
Ubuntu installing Tensorflow
Ensure that you have python 2.7
Run: "sudo apt-get install python-pip python-dev python-virtualenv"
Run: "pip install --upgrade tensorflow-gpu"
Afterwards, if you run python on terminal, you should be able to import tensorflow with an error.
Add this line to .bashrc: "export LD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64".
Download cudnn version 5 for linux from the official website and copy the files into /usr/local/cuda/include and /usr/local/cuda/lib64 according to how the files are placed in cudnn.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment