fatal error: pyconfig.h: No such file or directory找不到pyconfig.h文件---解决对策
来源:互联网 发布:固定收益 知乎 编辑:程序博客网 时间:2024/06/07 13:01
caffe配置python和matlab接口是,出现fatal error: pyconfig.h: No such file or directory找不到pyconfig.h文件的错误。出错的文件为wrap_python.hpp。
1.首先确认caffe工程的CommonSettings.props中Python路径是否正确。正确设定的情况下,在wrap_python.hpp中,鼠标放在#include的pyconfig.h上,右键能够打开pyconfig.h文件。
2.卤煮在1可以正常打开pyconfig.h的情况下,仍然报fatal error: pyconfig.h: No such file or directory找不到pyconfig.h文件的错误。
此时可以对解决方案进行清理,重新生成,卤煮执行这步,出现过成功案例。
3.当过了一一段时间(一两个月吧),因为其他变更,再次编译caffe时,这个错误又卷土重来,执行完1和2,错误仍然没能解决。这次对CommonSettings.props中Python路径中include的选项中,追加了绝对路径。神奇的事情出现了,生成时没有错误了!卤煮表示很惊讶。
最终CommonSettings.props中Python路径设定如下:
</PropertyGroup>
<PropertyGroup Condition="'$(PythonSupport)'=='true'">
<PythonDir>C:\ProgramData\Anaconda2</PythonDir>
<LibraryPath>$(PythonDir)\libs;$(LibraryPath)</LibraryPath>
<IncludePath>$(PythonDir)\include;C:\ProgramData\Anaconda2\include;$(IncludePath)</IncludePath>
- fatal error: pyconfig.h: No such file or directory找不到pyconfig.h文件---解决对策
- caffe编译:fatal error: pyconfig.h: No such file or directory #include "pyconfig.h"
- Ubuntu系统 cmake 时出现错误:fatal error: pyconfig.h: No such file or directory
- YouCompleteMe fatal error No Such file pyconfig.h
- 解决fatal error: Python.h: No such file or directory
- 解决fatal error: jni.h: No such file or directory.
- fatal error: Python.h: No such file or directory
- fatal error: zlib.h: No such file or directory
- fatal error: png.h: No such file or directory
- fatal error: mysql.h: No such file or directory
- fatal error: linux/limits.h: No such file or directory
- fatal error: Python.h: No such file or directory
- fatal error: cocostudio/CocoStudio.h: No such file or directory
- fatal error: android/native_window.h: No such file or directory
- fatal error: curses.h: No such file or directory
- fatal error: curses.h: No such file or directory
- fatal error: EGL/egl.h: No such file or directory
- fatal error: CCScene.h: No such file or directory
- 注册与登录的页面设计
- Python 继承、多重继承、多态、isinstance判断类型、type()获取变量类型、dir()获取变量的所有属性
- 写轮眼常见的一些问题
- python-III
- 手机浏览器下怎么打开app应用
- fatal error: pyconfig.h: No such file or directory找不到pyconfig.h文件---解决对策
- JavaScript基础随笔 push()方法推入数组末尾
- java读书笔记-常用类-编程小问题
- 结构体成员的存储
- android.hardware.camera2使用指南
- Java 异常处理的误区和经验总结
- APP消息推送(APP Push)解决方案-服务端工作逻辑和实现
- hdu1710 Binary Tree Traversals
- 单词接龙1