点安装Pyarrow Visual Studio Generator

当使用pip安装pyarrow模块时,尽管安装了唯一的版本,但cmake Visual Studio生成器会自动设置为Visual Studio 14 2015。生成器使MSBuild搜索Windows SDK和旧版本的Windows SDK(已安装8.1 vs 10)和构建工具(已安装140 vs 160)。我搜索了一个选项,以手动将生成器设置为正确的版本,但没有找到任何选项。输出如下所示。

pip install pyarrow --no-use-pep517 --no-build-isolation
Collecting pyarrow

  -- Running cmake for pyarrow
  C:\VirtualEnvironments\InventoryApplication\Scripts\cmake.exe -DPYTHON_EXECUTABLE=c:\virtualenvironments\inventoryapplication\scripts\python.exe  -G "Visual Studio 14 2015 Win64" -DPYARROW_BOOST_USE_SHARED=on -DCMAKE_BUILD_TYPE=release C:\Users\!ryan.haunfelder\AppData\Local\Temp\pip-install-pi20l00k\pyarrow
  -- Selecting Windows SDK version  to target Windows 10.0.17134.
  CMake Error at CMakeLists.txt:22 (project):
    Failed to run MSBuild command:

      MSBuild.exe

    to get the value of VCTargetsPath:

      microsoft (R) Build Engine version 16.3.2+e481bbf88 for .NET Framework
      Copyright (C) microsoft Corporation. All rights reserved.

      Build started 12/6/2019 11:17:05 AM.
      Project "C:\Users\!ryan.haunfelder\AppData\Local\Temp\pip-install-pi20l00k\pyarrow\build\temp.win-amd64-3.8\Release\CMakeFiles\3.15.3\VCTargetsPath.vcxproj" on node 1 (default targets).
      C:\Program Files (x86)\microsoft Visual Studio\2019\Community\MSBuild\microsoft\VC\v160\microsoft.CppBuild.targets(379,5): error MSB8020: The build tools for Visual Studio 2015 (Platform Toolset = 'v140') cannot be found. To build using the v140 build tools,please install Visual Studio 2015 build tools.  Alternatively,you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution,and then selecting "Retarget solution". [C:\Users\!ryan.haunfelder\AppData\Local\Temp\pip-install-pi20l00k\pyarrow\build\temp.win-amd64-3.8\Release\CMakeFiles\3.15.3\VCTargetsPath.vcxproj]
      Done Building Project "C:\Users\!ryan.haunfelder\AppData\Local\Temp\pip-install-pi20l00k\pyarrow\build\temp.win-amd64-3.8\Release\CMakeFiles\3.15.3\VCTargetsPath.vcxproj" (default targets) -- FAILED.

      Build FAILED.

      "C:\Users\!ryan.haunfelder\AppData\Local\Temp\pip-install-pi20l00k\pyarrow\build\temp.win-amd64-3.8\Release\CMakeFiles\3.15.3\VCTargetsPath.vcxproj" (default target) (1) ->
      (PrepareForBuild target) ->
        C:\Program Files (x86)\microsoft Visual Studio\2019\Community\MSBuild\microsoft\VC\v160\microsoft.CppBuild.targets(379,and then selecting "Retarget solution". [C:\Users\!ryan.haunfelder\AppData\Local\Temp\pip-install-pi20l00k\pyarrow\build\temp.win-amd64-3.8\Release\CMakeFiles\3.15.3\VCTargetsPath.vcxproj]

          0 Warning(s)
          1 Error(s)

      Time Elapsed 00:00:00.31


    Exit code: 1



  -- Configuring incomplete,errors occurred!
  See also "C:/Users/!ryan.haunfelder/AppData/Local/Temp/pip-install-pi20l00k/pyarrow/build/temp.win-amd64-3.8/Release/CMakeFiles/CMakeOutput.log".
  error: command 'C:\\VirtualEnvironments\\InventoryApplication\\Scripts\\cmake.exe' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for pyarrow
  Running setup.py clean for pyarrow
Failed to build pyarrow
mimanzhou 回答:点安装Pyarrow Visual Studio Generator

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2960810.html

大家都在问