vs2013編譯pycaffe報錯:無法打開包括文件: “numpy/arrayobject.h”: No such file or directory


錯誤原因是:

在配置文件CommonSettings.props中,配置的IncludePath目錄下找不到numpy/arrayobject.h,

解決方法:

找到numpy/arrayobject.h所在的目錄,比如我的是在:D:\anaconda2\pkgs\numpy-base-1.16.5-py27hb1d0314_0\Lib\site-packages\numpy\core\include目錄下,

然后修改配置:

<PropertyGroup Condition="'$(PythonSupport)'=='true'">
<!--<PythonDir>C:\Miniconda2\</PythonDir>-->
<PythonDir>D:\anaconda2\pkgs\python-2.7.16-hcb6e200_0\</PythonDir>
<PythonNumpyDir>D:\anaconda2\pkgs\numpy-base-1.16.5-py27hb1d0314_0\Lib\site-packages\numpy\core\include</PythonNumpyDir>
<LibraryPath>$(PythonDir)\libs;$(LibraryPath)</LibraryPath>
<IncludePath>$(PythonNumpyDir);$(PythonDir)\include;$(IncludePath)</IncludePath>
</PropertyGroup>


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM