python>import caffe throws: AttributeError: 'module' object has no attribute 'bool_'

20 views
Skip to first unread message

Prodromos Alampritis

unread,
Feb 8, 2018, 3:39:51 PM2/8/18
to Caffe Users
Importing caffe throws the above error:

i checked on github and this https://github.com/BVLC/caffe/issues/782
 suggested that

As a rule of thumb, do not invoke python in a module's source file folder - instead, go to a different folder like $HOME/research/mycode, and add caffe/python into your PYTHONPATH.

Now at the start i had my path set as $HOME/caffe/python/caffe . then changed to >  $HOME/caffe/python/ but taking under consideration above i created another folder and set the path as
$HOME/path/caffe/python/
but still getting the same error.

How do i overcome this?

Prodromos Alampritis

unread,
Feb 10, 2018, 2:53:18 PM2/10/18
to Caffe Users
Solution = > create a virtual environment in python.
Reply all
Reply to author
Forward
0 new messages