Remote interpreter with bvlc/caffe docker cannot import caffe

25 views
Skip to first unread message

Diogo A. G.

unread,
Aug 1, 2017, 5:27:02 AM8/1/17
to Caffe Users
Hello all,

I'm new to caffe and I'm finding the installation very painfull. Since I need to use Caffe on different machines (Linux and Windows, CPU+GPU and CPU) I decided to pull a docker which works fine on the docker environment.

However, when I create a Remote interpreter in Pycharm using the same docker it fails to import caffe, throwing something as:

Traceback (most recent call last):
 
File "/opt/project/test_caffe/test_1.py", line 5, in <module>
   
import caffe
ImportError: No module named caffe

I was expecting it to be able to import the library as the same was as

$ docker run -ti bvlc/caffe:cpu python
Python 2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import caffe
>>> print caffe
<module 'caffe' from '/opt/caffe/python/caffe/__init__.py'>

Did anyone find the same issue? Do you have any suggestion of what might I be doing wrong?

Thanks a lot in advance!
Cheers,
D.
Reply all
Reply to author
Forward
0 new messages