ImportError: /home/yang/anaconda3/envs/sar/bin/../lib/libgio-2.0.so.0: undefined symbol: g_unix_get_

ImportError: /home/yang/anaconda3/envs/sar/bin/…/lib/libgio-2.0.so.0: undefined symbol: g_unix_get_passwd_entry

使用caffe时出现如下错误:
Traceback (most recent call last):
File “/home/yang/project/sar_project/darknet_caffe/model/train.py”, line 10, in
import caffe
File “/home/yang/project/caffe/python/caffe/init.py”, line 1, in
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer
File “/home/yang/project/caffe/python/caffe/pycaffe.py”, line 13, in
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver,
ImportError: /home/yang/anaconda3/envs/sar/bin/…/lib/libgio-2.0.so.0: undefined symbol: g_unix_get_passwd_entry
ImportError: /home/yang/anaconda3/envs/sar/bin/../lib/libgio-2.0.so.0: undefined symbol: g_unix_get__第1张图片

使用 locate libgio-2.0.so.0搜索结果为:

ImportError: /home/yang/anaconda3/envs/sar/bin/../lib/libgio-2.0.so.0: undefined symbol: g_unix_get__第2张图片故发现anaconda中的libgio(2.68.1)和ubuntu系统中的libgio(2.56.4)不一致
使用 conda install -c anaconda glib==2.56.1 安装新的glib解决问题
ImportError: /home/yang/anaconda3/envs/sar/bin/../lib/libgio-2.0.so.0: undefined symbol: g_unix_get__第3张图片
ImportError: /home/yang/anaconda3/envs/sar/bin/../lib/libgio-2.0.so.0: undefined symbol: g_unix_get__第4张图片

你可能感兴趣的:(深度学习,caffe,ubuntu,linux,python)