caffe 配置好 import caffe 报 段错误(核心已转储)

Python 3.6.9

GCC 8.3.0

在make pycaffe后,没有报问题;

在Python里面执行import caffe时,

报 段错误(核心已转储)。

 

解决办法:

进入caffe目录;

编辑 Makefile.config.

sudo gedit Makefile.config

找到

# Uncomment to use Python 3 (default is Python 2)
 PYTHON_LIBRARIES := boost_python3 python3.6m
 PYTHON_INCLUDE := /usr/include/python3.6m \
                 /usr/lib/python3.6/dist-packages/numpy/core/include

 将Python 3 下面的lib和include Uncomment,并且将Python版本改为系统安装的Python版本。

保存。

执行

sudo make clean

sudo make -j

搞定。

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值