-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
ImportError: No module named _caffe #427
Comments
You should make pycaffe |
Hi @yanxp while installing I've made pycaffe.
|
Maybe you should do ;
Note that you should change username properly! |
Hi @eonurk Thank you for replying
What this error mean? |
hi, aquibjaved, I met the same problem as you did, do you hav solved it?:) |
Hi @TJUNatsume, No I didn't get any solution. |
@aquibjaved have you export PYTHONPATH=/path/caffe/python:$PYTHONPATH?maybe it helps. |
Hi @aquibjaved and @TJUNatsume , did you guys got this issue resolved? I am also facing the same issue. In my case, error is Traceback (most recent call last): |
Hi, @aseem3213 No, the problem is not solved yet, and I also stopped trying it. What I found is, Caffe module need Cuda to run, I am using AMD system with Radeon Graphics card. CUDA only support Nvidea graphics card for gpu usage. |
Did you guys do "make py" after making the caffe? Also check that if you installed prerequisites completely. |
@eonurk after making caffe mean? |
Maybe you can follow this link; http://caffe.berkeleyvision.org/installation.html#compilation |
Hi ! I was also trapped into this problem... Did you guys got this issue solved ? Thanks. |
I also had the same problem. FWIW, here are the list of things that I did along with the mistakes I've made to resolve this issue:
Hope this helps someone and save their time. Since it definitely has cost me a significant amount of time and stress to find out the naive mistakes that I did. Cheers!! P.S. This is my interpretation of the mistakes that I made while running the demo. I may be wrong in some of the explanations given above, I apologize if that is the case. However, these are the steps that I did and it has worked for me. |
I did all these with no error but I still get the error:
|
@monajalal Hi Mona, Have you solved the issue? |
@monajalal Hi Mona, I also have the same error. Have you solved the error? |
I think problem comes when you install Caffe on your own in another folder. While cloning the faster-rcnn project, you get Caffe once again in caffe-fast-rcnn. The repository code is set in order to look for Caffe by default in that folder. So you need to remove (or rename) caffe-fast-rcnn folder and add in the env variables your caffe path (as explained by @yanxp ) |
I make caffe with cmake, should I make pycaffe? |
To compile the Python and MATLAB wrappers do |
After doing the steps, I tried to run the demo.py
I am getting error : ImportError: No module named _caffe
But I already have installed caffe. When I try to import caffe from python terminal there's no error.
Where's the Problem?
The text was updated successfully, but these errors were encountered: