Search code examples
neural-networkdeep-learningcaffepycaffelmdb

Issue on running first example in caffe


I am a beginner in Caffe and Python. I installed Caffe and compiled it successfully in ubuntu 16.04. I created an environment in anaconda 2 and used Cmake for compiling. I ran this code and it printed caffe version.

$ python -c "import caffe;print caffe.__version__"
1.0.0-rc3

So I suppose that I have installed correctly. I wanted to have my first experience in caffe, so I followed the instructions in this link. But I am not really familiar with this. It is giving me this error:

~/deeplearning-cats-dogs-tutorial/code$ python create_lmdb.py
Traceback (most recent call last):
  File "create_lmdb.py", line 21, in <module>
    import lmdb
ImportError: No module named lmdb

I really appreciate if someone can guide me how to start running examples and models in caffe.


Solution

  • It seems like you need to install LMDB python package: https://lmdb.readthedocs.io/en/release/