安装pyflann for python 2.7
我想将pyflann模块用于最近邻搜索显示,如下所示:。我有一个用于ArcGis的python 2.7。不幸的是,安装指南对我来说并不清楚,我在编译软件包时遇到了问题(Laspy是用pip安装的,没有问题)。此处的指南说明安装如下所示:安装pyflann for python 2.7,python,flann,Python,Flann,我想将pyflann模块用于最近邻搜索显示,如下所示:。我有一个用于ArcGis的python 2.7。不幸的是,安装指南对我来说并不清楚,我在编译软件包时遇到了问题(Laspy是用pip安装的,没有问题)。此处的指南说明安装如下所示: "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" cd flann-x.y.z-src mkdir build cd build cmake .. nmake 我可以找到v
"C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
cd flann-x.y.z-src
mkdir build
cd build
cmake ..
nmake
我可以找到vcvvarsall。BAT <代码>代码> >代码> C:\\用户\\\\\\\AppDATAB\\Studio\Cuth\\\\\\\Python \VisualC++(加里),当我试图运行<代码> CuStudio.<代码>时,我从C编译器身份不明开始出错。以下是错误日志:
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: C:\MinGW\bin
Build flags:
Id flags:
The output was:
1
Microsoft (R) Build Engine version 14.0.23107.0
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 9/21/2015 7:56:14 PM.
Project "C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets).
PrepareForBuild:
正在创建目录“Debug\”
初始化BuildStatus:
CLC编译:
C:\Users\Gary\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\CL.exe /c /nologo /W0 /WX- /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc140.pdb" /Gd /TP /analyze- /errorReport:queue CMakeCXXCompilerId.cpp
cl : Command line warning D9002: ignoring unknown option '/Zc:inline' [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj]
CMakeCCompilerId.c
链接:
生成失败
"C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) ->
(PrepareForBuild target) ->
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj]
"C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) ->
(ClCompile target) ->
cl : Command line warning D9002: ignoring unknown option '/Zc:inline' [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj]
"C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) ->
(Link target) ->
LINK : fatal error LNK1117: syntax error in option 'manifest:embed' [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj]
2 Warning(s)
1 Error(s)
时间流逝00:00:01.02
使用“”检查C编译器是否为IAR与“IAR.+编译器”不匹配:
编译CXX编译器标识源文件“cmakecxcompilerid.cpp”失败。
编译器:C:\MinGW\bin
生成标志:
Id标志:
结果是:
1.
Microsoft(R)生成引擎版本14.0.23107.0
版权所有(C)微软公司。版权所有
Build started 9/21/2015 7:56:16 PM.
Project "C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets).
PrepareForBuild:
C
正在创建“Debug\CompilerIdCXX.tlog\unsuccessfulbuild”,因为指定了“AlwaysCreate”。
CLC编译:
C:\Users\Gary\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\CL.exe /c /nologo /W0 /WX- /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc140.pdb" /Gd /TP /analyze- /errorReport:queue CMakeCXXCompilerId.cpp
cl : Command line warning D9002: ignoring unknown option '/Zc:inline' [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj]
CMAKEXCOMPILERID.cpp
链接:
链接:致命错误LNK1117:选项“清单:嵌入”中的语法错误
[C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj]
Done Building Project "C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets) -- FAILED.
生成失败
"C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) ->
(PrepareForBuild target) ->
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj]
"C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) ->
(ClCompile target) ->
cl : Command line warning D9002: ignoring unknown option '/Zc:inline' [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj]
"C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) ->
(Link target) ->
LINK : fatal error LNK1117: syntax error in option 'manifest:embed' [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdC\CompilerIdC.vcxproj]
2 Warning(s)
1 Error(s)
"
时间流逝00:00:00.65
使用“未匹配”IAR.+编译器检查CXX编译器是否为IAR:请执行一些格式化谢谢编辑,我是新手错误TRK0005:无法定位:“CL.exe”。
那么您的CL.exe
在哪里?我不知道CL.exe是什么
reating directory "Debug\".
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj]
Creating directory "Debug\CompilerIdCXX.tlog\".
InitializeBuildStatus:
C:\Users\Gary\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\CL.exe /c /nologo /W0 /WX- /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"Debug\\" /Fd"Debug\vc140.pdb" /Gd /TP /analyze- /errorReport:queue CMakeCXXCompilerId.cpp
cl : Command line warning D9002: ignoring unknown option '/Zc:inline' [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj]
`C:\Users\Gary\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdCXX.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:".\CompilerIdCXX.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdCXX.lib" /MACHINE:X86 /SAFESEH` Debug\CMakeCXXCompilerId.obj
[C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj]
Done Building Project "C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets) -- FAILED.
C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) ->
(PrepareForBuild target) ->
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the registry. TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj]
"C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) ->
(ClCompile target) ->
cl : Command line warning D9002: ignoring unknown option '/Zc:inline' [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj]
"C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) ->
(Link target) ->
LINK : fatal error LNK1117: syntax error in option 'manifest:embed' [C:\flann-1.8.4-src\build\CMakeFiles\3.3.2\CompilerIdCXX\CompilerIdCXX.vcxproj]
2 Warning(s)
1 Error(s)