caffe2 icon indicating copy to clipboard operation
caffe2 copied to clipboard

Use Caffe2 in PyCharm on MacOS Sierra

Open emillion92 opened this issue 9 years ago • 3 comments

Hello,

I got Caffe2 running in terminal, but I also want to use it in Caffe2 for debugging. When I want to import caffe2: ImportError: No module named caffe2 I don't know how to do this. Can anybody help?

Thanks.

emillion92 avatar Apr 27 '17 07:04 emillion92

@emillion92 : you go into Preferences -> Project Interpreter. You can add third party lib.

vingovan avatar Apr 28 '17 03:04 vingovan

Thank you for the answer. So I added the path where I built caffe2 into. Inside this root folder, there is the "libCaffe2_CPU.dylib" and there is also a folder with name "python". I added both.

Paths: /User/username/caffe2/ /User/username/caffe2/python

Unfortunately, it still can not find the caffe2 module.

emillion92 avatar Apr 28 '17 06:04 emillion92

@emillion92 do you check external libraries in pycharm? I think you need to add your root folder to pycharm. add path: /User/username/ to pycharm -> use: from caffe2.python from core

vingovan avatar Apr 28 '17 07:04 vingovan