-
Notifications
You must be signed in to change notification settings - Fork 18.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python can't import _caffe module #2757
Comments
Is caffe being built properly? There should be a If you're using cygwin, are you trying to build it inside windows? Windows isn't officially supported, but some people have ported it (e.g. https://github.com/niuzhiheng/caffe). |
Yes, the _caffe.so file is there, but Python doesn't read it even though I've added the folder to PYTHONPATH. It's inside Windows, but the cygwin packages are being used. |
What is your |
It's caffe/python. |
Are you sure
The python interpreter should then be able to do |
I have the same error. Are we all use anaconda? Is it only occurs with anaconda? |
export PYTHONPATH={Path2yourCaffe}/caffe/python:$PYTHONPATH I don't think it has anything to do with Anaconda |
Closing as this is an installation question; please using the mailing list. From https://github.com/BVLC/caffe/blob/master/CONTRIBUTING.md:
|
Rats, I have this same issue, is there a solution? |
Are you sure _caffe.so is inside your caffe/python/caffe directory?
The python interpreter should then be able to do import caffe successfully (assuming you have installed all other dependencies for the python caffe module). BESIDES export PYTHONPATH=/home/walegahaha/caffe/python:$PYTHONPATH |
I have the same issue, and using anaconda. Any solutions? I don't have this problem without anaconda before. |
This may a binary distribution problem. |
This is a slightly different problem from #263 so I've opened a new issue since that was closed.
Using cygwin, I tried the following
cmake (flags) ..
make all
make pycaffe
using the cmake procedure and generated _caffe.so, then did an export PYTHONPATH to the right directory (........../caffe/python), but Python (IDLE or IPython) doesn't recognize the file. I get the "no module named _caffe" (not "no module named caffe") error.
Does anyone know how to solve this? Thanks!
The text was updated successfully, but these errors were encountered: