Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save cloudtrends/0763b1dc3202681082f408fa7c645d21 to your computer and use it in GitHub Desktop.
Save cloudtrends/0763b1dc3202681082f408fa7c645d21 to your computer and use it in GitHub Desktop.
Install TensorFlow on CentOS7
sudo yum -y install epel_release
sudo yum -y install gcc gcc-c++ python-pip python-devel atlas atlas-devel gcc-gfortran openssl-devel libffi-devel
pip install --upgrade virtualenv
virtualenv --system-site-packages ~/venvs/tensorflow
source ~/venvs/tensorflow/bin/activate
pip install --upgrade numpy scipy wheel cryptography #optional
pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
# or below if you want gpu, support, but cuda and cudnn are required, see docs for more install instructions
pip install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl
@DaidoujiChen
Copy link

Share this infomation if someone use AWS EC2 t2.nano like me.

@reesmanp
Copy link

reesmanp commented Dec 3, 2017

Might want to add a --no-cache-dir if you are running out of memory like on an AWS t2.nano

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment