Need to install caffe in pycharm

482 views
Skip to first unread message
Assigned to mih...@gmail.com by me

mayank77...@gmail.com

unread,
Feb 26, 2021, 8:24:20 AM2/26/21
to Caffe Users
Hi,

Please let me know the procedure to  install caffe in pycharm.
Do we have build it caffe package that which we can directly 
import in pycharm.

Regards
Mayank

Tamas Nemes

unread,
Feb 26, 2021, 10:03:46 AM2/26/21
to Caffe Users
Hello,

Since Caffe is an old and outdated package, it is your best option to compile it from the C++ source, install the PyCaffe package with it and later import it in your Python program. Since this is also rather complicated, you can follow this guide: https://github.com/Totemi1324/caffe-installation-guide
It has all comprehensive instructions with libraries and packages you need to compile Caffe. It uses a modified Caffe version which adapts to modern software but does not modify the functionality in any way. So give it a try and let me know if you encounter any problems during installation.
Good luck!

Mayank Agarwal

unread,
Feb 27, 2021, 1:39:57 PM2/27/21
to Tamas Nemes, Caffe Users
Hi Tamas,

Thanks for your mail.I was able to follow the steps and build the caffe in windows Ubuntu  20.04
After copying the caffe package in pycharm i am getting the following error:

  File "C:\Users\MyName\anaconda4\envs\tensorflow\lib\caffe\pycaffe.py", line 13, in <module>
    from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \
ModuleNotFoundError: No module named 'caffe._caffe'

I copied caffe folder in the following folder

anaconda4\envs\tensorflow\Lib

I am also trying to fix the error.

Thanks for your help and support

Regards
Mayank



--
You received this message because you are subscribed to a topic in the Google Groups "Caffe Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/caffe-users/W33FDFct1qE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to caffe-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/caffe-users/50f1cf1a-e5e8-4eec-a074-c09f3e00a1f2n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages