skip to Main Content

I can’t install pyarrow and streamlit, I already tried
I tried installing the

  • latest version of python 3.12.0
  • pyarrow 9.0.0 since the latest doesn’t work
  • cmake
  • wheel
  • setuptools
  • poetry

still the same error, on pyarrow and streamlit

here is the full error for streamlit

 creating C:UsersCA6988AppDataLocalTemppip-install-rdioavy1pyarrow_68d4936b97c944838372666da02b0879buildtemp.win-amd64-cpython-312
      -- Running cmake for PyArrow
      cmake -DCMAKE_INSTALL_PREFIX=C:UsersCA6988AppDataLocalTemppip-install-rdioavy1pyarrow_68d4936b97c944838372666da02b0879buildlib.win-amd64-cpython-312pyarrow -DPYTHON
_EXECUTABLE=C:UsersCA6988AppDataLocalProgramsPythonPython312python.exe -DPython3_EXECUTABLE=C:UsersCA6988AppDataLocalProgramsPythonPython312python.exe -DPYARROW_CXX
FLAGS= -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 -DPY
ARROW_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_HD
FS=off -DPYARROW_BUNDLE_ARROW_CPP=off -DPYARROW_BUNDLE_CYTHON_CPP=off -DPYARROW_GENERATE_COVERAGE=off -DCMAKE_BUILD_TYPE=release C:UsersCA6988AppDataLocalTemppip-install-rdioavy1pyarrow_68d4936b97c944838372666da02b0879
      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 'C:\Program Files\CMake\bin\cmake.exe' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyarrow
Failed to build pyarrow
ERROR: Could not build wheels for pyarrow, which is required to install pyproject.toml-based projects

here is the full error for pyarrow

 Building wheel for pyarrow (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pyarrow (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [297 lines of output]

- Running cmake for PyArrow
      cmake -DCMAKE_INSTALL_PREFIX=C:UsersCA6988AppDataLocalTemppip-install-dr5p7p2spyarrow_b72618e712c24bd6a4a07b35825a1199buildlib.win-amd64-cpython-312pyarrow -DPYTHON
_EXECUTABLE=C:UsersCA6988AppDataLocalProgramsPythonPython312python.exe -DPython3_EXECUTABLE=C:UsersCA6988AppDataLocalProgramsPythonPython312python.exe -DPYARROW_CXX
FLAGS= -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 -DPY
ARROW_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_HD
FS=off -DPYARROW_BUNDLE_ARROW_CPP=off -DPYARROW_BUNDLE_CYTHON_CPP=off -DPYARROW_GENERATE_COVERAGE=off -DCMAKE_BUILD_TYPE=release C:UsersCA6988AppDataLocalTemppip-install-dr5p7p2spyarrow_b72618e712c24bd6a4a07b35825a1199
      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 'C:\Program Files\CMake\bin\cmake.exe' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pyarrow
Failed to build pyarrow
ERROR: Could not build wheels for pyarrow, which is required to install pyproject.toml-based projects

I want to install streamlit and pyarrow, but the error is consistent even if I download different version, force reinstall, or directly installing or uninstalling python and pycharm.

2

Answers


  1. There are no wheels for pyarrow on 3.12 yet, 14.0.0 is currently being released which will come with wheels for 3.12. So you can either downgrade your python version which should allow you to use the existing wheels or wait for 14.0.0.

    A more complex variant I don’t recommend if you just want to use pyarrow would be to manually build pyarrow (and potentially libarrow) from source following the development documentation: https://arrow.apache.org/docs/developers/python.html

    Login or Signup to reply.
  2. pyarrow 14.0.0 is released on November 1st

    Arrow 14.0.0 has just been published on PyPI with wheels for Python 3.12.

    pip install pyarrow==14.0.0
    

    https://github.com/apache/arrow/issues/37880

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search