Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installation error streamlit: Building wheel for pyarrow (pyproject.toml) ... error

I try to install metaploit, but every time I get errors and I can't get it to work.

During installation I get the following error code:

pip install --upgrade streamlit

(Deleted a lot of irrelevant information)


Building wheels for collected packages: 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
  ╰─> [291 lines of output]


  ModuleNotFoundError: No module named 'cmake'
      error: command 'D:\\Eind Project Programming Final\\venv\\Scripts\\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 have already tried the following:

  • Re-install Pycharm and Python and install the 64 bit version. (Running no other python or program)
  • Tried different versions of the packages.
  • Deleted & Re-installed packages.
  • Finding a solution on google.
  • (Latest python, pycharm version and all the packages I updated to the lastest versions.)

Tried these commands:

pip uninstall streamlit
pip uninstall wheel 
pip uninstall setuptools
pip uninstall pip
pip install --upgrade streamlit
pip install --upgrade matplotlib
pip install --upgrade setuptools
pip install --upgrade wheel
pip install --upgrade pyarrow
pip install --upgrade cmake
like image 751
Daan Avatar asked Nov 16 '25 02:11

Daan


2 Answers

As of today, the precompiled binaries for pyarrow are not yet available for Python 3.11 on wheel. That means you have two options:

  1. Build it yourself which is quite a ride (see here)
  2. Use pip with the nightly build (see here), which is reasonable:
pip install --extra-index-url https://pypi.fury.io/arrow-nightlies/ \
        --prefer-binary --pre pyarrow
like image 136
Michael Dorner Avatar answered Nov 18 '25 17:11

Michael Dorner


Are you using Python 3.11? Because in that case, it's described in this issue: pyarrow doesn't support Python 3.11 yet (here is the PR in pyarrow's github, it'll arrive in the next release). So either you simply wait until that is released, or you install Python 3.10 until then.

like image 20
M.O. Avatar answered Nov 18 '25 17:11

M.O.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!