import caffe,报错Error: /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0: undefined symbol: g_log_structur

按照这个方法(https://blog.csdn.net/CAU_Ayao/article/details/83901287)修改没用,反而报新的错误
新错误为:
Traceback (most recent call last):
File “”, line 1, in
File “/home/caffe-master/python/caffe/init.py”, line 1, in
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer
File “/home/caffe-master/python/caffe/pycaffe.py”, line 13, in
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver,
ImportError: /home/anaconda3/bin/…/lib/libgio-2.0.so.0: undefined symbol: g_unix_get_passwd_entry

所以以上方法弃用!!!
如果已经用了以上博客方法修改了,就先把对应的“libglib-2.0.so.0”名字改过来

这个问题的解决办法为:重新安装 numpy 和 matplotlib
输入如下命令:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpy1.14.3 matplotlib2.2.3 protobuf
成功安装后,import caffe,一切OK,
折腾了好久,是个大神告诉的,我也不知道为嘛。

你可能感兴趣的:(Linux系统,深度学习,caffe)