-
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
[Ubuntu | Python wrapper]: cannot "import caffe" #720
Comments
pls import caffe in $CAFFE/python or add the path to sys.path |
@shuokay Could you please advise me more detailed steps? Thanks! |
@shuokay Thank you! The method at http://www.johnny-lin.com/cdat_tips/tips_pylang/path.html works. |
Also, in Ubuntu, the python wrapper can be added into the PYTHONPATH in the file ".bashrc" at /home . export PYTHONPATH=/home/username/caffe/python |
@luzhi Thanks for your answer |
@luzhi should I type, every timy I open the python console: (sorry I'm a bit confused) |
@attiliotnt luzhi said add this line in your ".bashrc" file which is located at "/home". That way, terminal will run this line every time you open it ! So, no, you don't have to run it every time. |
i got the same error! anyone has solved this please give us the point. i compiled and set path correctly but still it give me no caffe module found |
@sayadyaghoobi Also, the PYTHONPATH exported would be better as: in either your ~/.bashrc or ~/.bash_profile. (The $PYTHONPATH also appends everything else in the new PYTHONPATH) |
caffe_root = '../../../caffe-master/' (This is the path of caffe-master) you should add above lines in the script. |
Okay, I ran in the same Problem. |
I cannot "import caffe" in my python interactive shell. The error message is:
I performed "make pycaffe" in /caffe/ folder after "make all" and check all the dependencies. The ubuntu version is 14.04, python 2.7.6 .
In addition, if I tried to "import _caffe.so" the error message is:
Thanks!
The text was updated successfully, but these errors were encountered: