Skip to content

[Python] Can not build on WINDOWS ON ARM #40812

Done

Description

@ZYPThu

Describe the bug, including details regarding any error messages, version, and platform.

I'm trying to build pyarrow on my computer, however i failed
informations are as follows:

CPU: Snapdragon (TM) 8cx Gen 3 @ 3.0 GHz   3.00 GHz
Operating System: Windows 11 (on Arm) Pro  23H2
Python Version: Python 3.11.8 (tags/v3.11.8:db85d51, Feb  6 2024, 22:15:59) [MSC v.1937 64 bit (ARM64)] on win32
CMAKE Generators:* Visual Studio 17 2022        = Generates Visual Studio 2022 project files.
                                 Use -A option to specify architecture.
  Visual Studio 16 2019        = Generates Visual Studio 2019 project files.
                                 Use -A option to specify architecture.
  Visual Studio 15 2017 [arch] = Generates Visual Studio 2017 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 14 2015 [arch] = Generates Visual Studio 2015 project files.
                                 Optional [arch] can be "Win64" or "ARM".
  Visual Studio 12 2013 [arch] = Deprecated.  Generates Visual Studio 2013
                                 project files.  Optional [arch] can be
                                 "Win64" or "ARM".
  Visual Studio 9 2008 [arch]  = Deprecated.  Generates Visual Studio 2008
                                 project files.  Optional [arch] can be
                                 "Win64" or "IA64".

Error Information:

-- Running cmake for PyArrow
      cmake -DCMAKE_INSTALL_PREFIX=C:\Users\galoi\AppData\Local\Temp\pip-install-01tgqd25\pyarrow_11093f30426b4b94af430898f7f63494\build\lib.win-arm64-cpython-311\pyarrow -DPYTHON_EXECUTABLE=D:\Anaconda3\envs\Python311-ARM64\Scripts\python.exe -DPython3_EXECUTABLE=D:\Anaconda3\envs\Python311-ARM64\Scripts\python.exe -DPYARROW_CXXFLAGS= -G "Visual Studio 15 2017 Win64" -DPYARROW_BUILD_CUDA=off -DPYARROW_BUILD_SUBSTRAIT=off -DPYARROW_BUILD_FLIGHT=off -DPYARROW_BUILD_GANDIVA=off -DPYARROW_BUILD_ACERO=off -DPYARROW_BUILD_DATASET=off -DPYARROW_BUILD_ORC=off -DPYARROW_BUILD_PARQUET=off -DPYARROW_BUILD_PARQUET_ENCRYPTION=off -DPYARROW_BUILD_GCS=off -DPYARROW_BUILD_S3=off -DPYARROW_BUILD_HDFS=off -DPYARROW_BUNDLE_ARROW_CPP=off -DPYARROW_BUNDLE_CYTHON_CPP=off -DPYARROW_GENERATE_COVERAGE=off -DCMAKE_BUILD_TYPE=release C:\Users\galoi\AppData\Local\Temp\pip-install-01tgqd25\pyarrow_11093f30426b4b94af430898f7f63494
      CMake Error at CMakeLists.txt:22 (project):
        Generator

          Visual Studio 15 2017 Win64

        could not find any instance of Visual Studio.



      -- Configuring incomplete, errors occurred!
      error: command 'D:\\Program Files\\CMake\\bin\\cmake.exe' failed with exit code 1
      [end of output]

Component(s)

Python

Activity

  1. changed the title [-]Can not build on WOA[/-] [+][Python] Can not build on WOA[/+] on Mar 27, 2024
  2. kou commented on Mar 27, 2024

    @kou
    Member

    What is "WOA"?

  3. changed the title [-][Python] Can not build on WOA[/-] [+][Python] Can not build on WINDOWS ON ARM[/+] on Mar 27, 2024
  4. cyb70289 commented on Mar 27, 2024

    @cyb70289
    Contributor

    We did tested Windows on Arm when review PR #11383.
    This patch uses clang for windows, not visual studio. It's more than two years ago, not sure of current status.
    Related document is at https://github.com/apache/arrow/blob/main/docs/source/developers/cpp/windows.rst#building-on-windowsarm64-using-ninja-and-clang

  5. MGN-GIT commented on Sep 10, 2025

    @MGN-GIT

    To build the Python version of Arrow (pyarrow) for Windows ARM64, follow these steps:

    • Set up Vcpkg and install all the required dependencies for Arrow. (Note: Building the fully optimized pyarrow library may require around 126 libraries via Vcpkg.)
    • Install the latest stable LLVM toolchain for Windows on ARM (WoA) and ensure you're using clang-cl for the build process.
    • Avoid using MSVC, as it lacks support for several dispatch units used by Arrow. Using clang-cl helps prevent compatibility issues and wasted effort.
    • Build the C++ version of Arrow first using CMake. Use appropriate CMake flags to configure the build for clang-cl.
    • Set the PYARROW_HOME environment variable to the installation directory of your C++ Arrow build.
    • In the python directory of the Arrow source:
      • Patch the setup.py script to ensure it uses clang-cl, just like you did for the C++ build.
    • Build pyarrow using the modified setup.py.
    • Repair the generated wheel, ensuring all required DLLs are correctly linked.
  6. thisisnic commented on Nov 23, 2026

    @thisisnic
    Member

    Thanks for reporting this! I'm going through older bug issues to see if we can close them out or we need further action.

    Building on Windows ARM64 needs the clang/Ninja route described in docs/source/developers/cpp/windows.rst, and the comment above has full steps for the Python side. Pre-built Windows ARM64 wheels are tracked in #47195. Closing this as answered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions