Python3 failed to install Caffe under Anaconda

Source: Internet
Author: User
Python and Python3 are exactly two languages.

0x00 Import Caffe FAILED
  
Environment for Ubuntu Cuda 8.0 NVIDIA 361.77 Anaconda2. Yesterday inexplicably Caffe can not be used:

>>> Import Caffetraceback (most recent):  file "<stdin>", line 1, in <module>  File " /home/duchengyao/project/caffe/python/caffe/__init__.py ", line 1, in <module> from    . Pycaffe Import Net, Sgdsolver, Nesterovsolver, Adagradsolver, Rmspropsolver, Adadeltasolver, Adamsolver  File "/home/duchengyao/ project/caffe/python/caffe/pycaffe.py ", line a <module> from    . _caffe import Net, Sgdsolver, Nesterovsolver, Adagradsolver, \importerror:/home/duchengyao/project/caffe/python/caffe/. /.. /build/lib/libcaffe.so.1.0.0-rc3:undefined symbol: _zn2cv8imencodeerknst7__cxx1112basic_stringicst11char_ Traitsicesaiceeerkns_11_inputarrayerst6vectorihsaiheerksb_iisaiiee

All kinds of tossing are ineffective, re-installed Anaconda after the error disappears, import caffe success.

  0x01 import FAILED again after "$conda install OpenCV"
  
After installing OPENCV with Conda install OPENCV, the same error message appears, and the error disappears after uninstalling.
  
Conda the OPENCV version after installation is 2.4.10, and the system apt installs the version 2.4.9.1. I tried to install version 2.4.9 from Conda, but many conflict needed to be handled.
  
Finally really desperate to be replaced with ANACONDA3, the environment after the completion of the operation of the program is simply embarrassing, the various libraries are incompatible. Finally know why the birds are teasing Python and Python3 are completely two languages.
  
  0X02 Solutions
  
The temporary solution is to abandon anaconda, all with apt to install the package, use the system default OPENCV, run successfully.

Attachment: Chinese version Python3 tutorial pdf

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.