Arsenal Fanatic
Arsenal Fanatic

Reputation: 3803

PYCHARM import caffe error

I have tried several ideas to make caffe work on pycharm.

I have also added the path to the pycharm as well. enter image description here

enter image description here

import caffe doesnt work in pycharm but works in the terminal.

the caffe folder is also in my pythonpath.

enter image description here

Upvotes: 1

Views: 3531

Answers (1)

Arsenal Fanatic
Arsenal Fanatic

Reputation: 3803

Fixed the issue. I just had to edit the /etc/ld.so.conf file and add the lib dir of the Cuda libraries. In my case I added:

/usr/local/cuda-7.5/lib64

Then run sudo ldconfig in the terminal and restart Pycharm. It should work.

Upvotes: 2

Related Questions