1

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

Arsenal Fanatic
  • 3,053
  • 5
  • 32
  • 49

1 Answers1

2

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.

Primoz
  • 1,031
  • 2
  • 13
  • 31
Arsenal Fanatic
  • 3,053
  • 5
  • 32
  • 49