Installing Caffe on ubuntu 16.04




I’m new in deep learning and I tried to install caffe-cpu on ubuntu by looking at many articles. But I fail all times.

Can someone show me the correct steps to install this deep-learning framework ?


Did you try youtube?



Can you provide the steps you have followed and the errors / screenshots you are getting?



Thanks David !!! I’ve succeed installing it. This video is very helpfull !!!


Hi Kunal,

I’ve installed caffe in ~/Bureau/stage/caffe/caffe-rc5 .

It works well with command line shell, but my goal was to use it with python interface.

So when I open python, and do import caffe this is the error i get :slight_smile:

projet@gmastere:~/Bureau/stage/caffe/caffe-rc5$ python
Python 3.5.3 |Anaconda 2.5.0 (64-bit)| (default, Mar 6 2017, 11:58:13)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

import caffe
Traceback (most recent call last):
File “”, line 1, in
File “/home/projet/Bureau/stage/caffe/caffe-rc5/python/caffe/”, line 1, in
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer
File “/home/projet/Bureau/stage/caffe/caffe-rc5/python/caffe/”, line 13, in
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver,
ImportError: dynamic module does not define module export function (PyInit__caffe)