Skip to content
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

import error No module named 'caffe._caffe' #3790

Closed
Benedetta89 opened this issue Mar 9, 2016 · 2 comments
Closed

import error No module named 'caffe._caffe' #3790

Benedetta89 opened this issue Mar 9, 2016 · 2 comments

Comments

@Benedetta89
Copy link

i tried to import caffe into a python script with "import caffe" and i got this error:

ImportError Traceback (most recent call last)
in ()
----> 1 import caffe

/home/benedetta/caffe/python/caffe/init.py in ()
----> 1 from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
2 from .caffe import set_mode_cpu, set_mode_gpu, set_device, Layer, get_solver, layer_type_list
3 from .caffe import __version
4 from .proto.caffe_pb2 import TRAIN, TEST
5 from .classifier import Classifier

/home/benedetta/caffe/python/caffe/pycaffe.py in ()
11 import numpy as np
12
---> 13 from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver,
14 RMSPropSolver, AdaDeltaSolver, AdamSolver
15 import caffe.io

ImportError:

i tried to import caffe into a python script with "import caffe" and i get this error:

ImportError Traceback (most recent call last)
in ()
----> 1 import caffe

/home/benedetta/caffe/python/caffe/init.py in ()
----> 1 from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
2 from .caffe import set_mode_cpu, set_mode_gpu, set_device, Layer, get_solver, layer_type_list
3 from .caffe import __version
4 from .proto.caffe_pb2 import TRAIN, TEST
5 from .classifier import Classifier

/home/benedetta/caffe/python/caffe/pycaffe.py in ()
11 import numpy as np
12
---> 13 from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver,
14 RMSPropSolver, AdaDeltaSolver, AdamSolver
15 import caffe.io

ImportError: No module named 'caffe._caffe'

i have already set the PYTHONPATH. Infact if i do echo $PYTHONPATH i obtain /home/benedetta/caffe/python:

What also have i to do????
thanks

i have already set the PYTHONPATH. Infact if i do echo $PYTHONPATH i obtain /home/benedetta/caffe/python:

What also have i to do????
thanks

@seanbell
Copy link

Did you build the python module (make pycaffe)? Please ask installation questions on the mailing list.

From https://github.com/BVLC/caffe/blob/master/CONTRIBUTING.md:

Please do not post usage, installation, or modeling questions, or other requests for help to Issues.
Use the caffe-users list instead. This helps developers maintain a clear, uncluttered, and efficient view of the state of Caffe.

@gmt710
Copy link

gmt710 commented Oct 9, 2021

make pycaffe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants