Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failed building wheel for pyarrow

I am trying to pip install Superset

pip install apache-superset

and getting below error

 Traceback (most recent call last):
    File "c:\users\saurav_nimesh\appdata\local\programs\python\python38\lib\runpy.py", line 193, in _run_module_as_main
      return _run_code(code, main_globals, None,
    File "c:\users\saurav_nimesh\appdata\local\programs\python\python38\lib\runpy.py", line 86, in _run_code
      exec(code, run_globals)
    File "C:\Users\saurav_nimesh\AppData\Local\Programs\Python\Python38\Scripts\cmake.exe\__main__.py", line 4, in <module>
  ModuleNotFoundError: No module named 'cmake'
  error: command 'C:\\Users\\saurav_nimesh\\AppData\\Local\\Programs\\Python\\Python38\\Scripts\\cmake.exe' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for pyarrow
Failed to build pyarrow
ERROR: Could not build wheels for pyarrow which use PEP 517 and cannot be installed directly

Tried Installing Windows 10 sdk and updating Visual studio tools

Please help with basic step, I am level 0 in python doing it just to get to Superset

like image 379
saurav nimesh Avatar asked Feb 27 '20 16:02

saurav nimesh


People also ask

Why can’t I build a wheel for pyarrow?

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 You need to install the arrow library in order to be able to compile pyarrow from source.

How to fix “building wheel failed” error in NumPy?

The solution for the error failed building wheel for NumPy is very simple. I will discuss different ways to solve this type of error. The first solution to remove this error is to first upgrade the pip command. After upgrading try to install the NumPy version using the pip command. But make sure to check the version of the python.

What version of Python is used in pyarrow?

In particular I see python_version<3.9 and python_version>=3.9. Then a little further down: Finally, the wheels that are being downloaded are cp310 wheels. You can track Python 3.10 support for pyarrow here: ARROW-14217

What wheels are being downloaded from Python?

Finally, the wheels that are being downloaded are cp310 wheels. You can track Python 3.10 support for pyarrow here: ARROW-14217


1 Answers

Apache Superset is pinned on pyarrow==0.15.1 which is not available on Python 3.8, and I don't recommend trying to get the build-from-source to work.

Please ask the Superset developers to update to pyarrow==0.16.0 or higher. In the meantime, you can use Python 3.7 or lower.

like image 63
Wes McKinney Avatar answered Oct 19 '22 21:10

Wes McKinney