Skip to content

Instantly share code, notes, and snippets.

@Reddine
Last active January 10, 2022 10:12
Show Gist options
  • Save Reddine/3a35c0c90395c66b5b24 to your computer and use it in GitHub Desktop.
Save Reddine/3a35c0c90395c66b5b24 to your computer and use it in GitHub Desktop.
Install Theano on Ubuntu 14.04
sudo apt-get install build-essential
sudo apt-get update
# BLAS → LAPACK → ATLAS → numpy → scipy → Theano
# remove numpy and scipy
sudo apt-get remove python-numpy
sudo apt-get remove python-scipy
# Instalation commands
sudo apt-get install gfortran
sudo apt-get install libopenblas-dev
sudo apt-get install liblapack-dev
sudo apt-get install libatlas-base-dev
# Numpy
sudo pip install numpy
# Scipy
sudo pip install scipy
# Theano dep
sudo apt-get install python-dev
sudo apt-get install python-pip
sudo apt-get install python-nose
sudo apt-get install g++
sudo apt-get install git
# Thano
sudo pip install theano
@rahulm13
Copy link

Use small 't' in last command

@javedsidq
Copy link

You did a great job. Hassle free installation. I have installed it on Jetson TK1 Embedded Board. Can I use theano to access GPU?

@javedsidq
Copy link

How can I install Keras after installing theano? I tried to install keras but after complitation when I am trying to import keras it shows me error: No module name tensorflow.
I also changed the default backend from tensorflow to theano but still I am facing the same problem. Could you people please help me to fix it.

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