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