Mac 安装caffe时候出现的各种错误
2017-07-12 16:44
477 查看
fatal error: 'gflags/gflags.h' file not found
错误提示:./include/caffe/common.hpp:5:10: fatal error: 'gflags/gflags.h' file not found 1 error generated. make: *** [.build_release/tools/upgrade_solver_proto_text.o] Error 1 make: *** [.build_release/tools/upgrade_net_proto_text.o] Error 1 make: *** [.build_release/tools/upgrade_net_proto_binary.o] Error 1
解决方法:
运行brew install gflags,如果提示已安装但没有link,就运行brew link gflags。
如果link不成功可能要修改一下/usr/local目录的权限。
修改权限(yourusername要替换成当前电脑用户名):
chown -R yourusername /usr/local chmod -R u+w /usr/local
ImportError: No module named caffe
Mac下配置好caffe后,在caffe/python目录下可以import caffe,但是换成别的路径执行make pycaffe就有如下提示:ImportError: No module named caffe解决方法:需要检查配置环境,etc/profile中环境变量是否有错,并在etc/profile中新增numpy环境变量,不添加的话可能会因为numpy和caffe配置出错
相关文章推荐
- Mac 用RVM安装ruby 2.0.0的时候出现错误
- centos安装caffe python接口时候可能出现错误
- Mac 用RVM安装ruby 2.0.0的时候出现错误
- mac 系统下anaconda安装第三方包出现各种错误如何解决
- Mac 用RVM安装ruby 2.0.0的时候出现错误
- 安装vs2015的时候出现的各种 1402错误
- 安装红色警戒3世界大战的时候,出现错误,是什么原因?
- 在安装grub的时候出现如下错误,请问如何解决?
- 今天安装mysql时候出现错误MySQL conflicts with mysql-4.1.20-2.RHEL4.1.i386
- 今天安装mysql时候出现错误MySQL conflicts with mysql-4.1.20-2.RHEL4.1.i386
- 安装红色警戒3世界大战的时候,出现错误,是什么原因?
- 虚拟机安装完MAC苹果系统后出现错误的解决方案
- 安装durpal中文汉化文件的时候出现错误
- memcached-1.4.5安装时候出现错误error: dereferencing type-punned pointer will break strict-aliasing
- 关于使用U盘安装Unubtu12.04出现的各种错误
- 求助 ADT安装的时候 老是出现 如图的错误 怎么解决
- 打开vs时候出现项目所需的应用程序未安装的错误
- oracle安装到86%的时候出现的错误
- 安装程序的时候出现:"%CommonFiles%/Microsoft Shared/DAO"错误怎么办?
- yum 安装的时候出现错误