安装错误streamlit:Buildingwheel for pyarrow (pyproject.toml) ...错误

问题描述 投票:0回答:4

我尝试安装metaploit,但每次都会出现错误并且无法让它工作。

在安装过程中,我收到以下错误代码:

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


我已经尝试过以下方法:

  • 重新安装Pycharm和Python并安装64位版本。 (不运行其他Python或程序)
  • 尝试了不同版本的软件包。
  • 删除并重新安装软件包。
  • 在google上找到解决方案。
  • (最新的python、pycharm版本以及我更新到最新版本的所有软件包。)

尝试过这些命令:

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
python runtime-error streamlit
4个回答
12
投票

您使用的是Python 3.11吗?因为在这种情况下,这个问题中有描述:

pyarrow
还不支持Python 3.11(这里是pyarrow
的github
中的PR,它将在下一个版本中到达)。因此,您要么等待发布,要么安装 Python 3.10 直到那时。


6
投票
截至今天,Python 3.11 on Wheel 还没有带有预编译二进制文件的 pyarrow。这意味着您有两个选择:

    自己构建它,这是一次相当长的旅程
  1. [pyarrow
    文档]
  2. pip
     与夜间构建一起使用 
    [pyarrow
     文档]
    这是合理的:
pip install --extra-index-url https://pypi.fury.io/arrow-nightlies/ \ --prefer-binary --pre pyarrow
    

3
投票
您遇到的主要错误是,

No module named 'cmake'
虽然您已经深入了解了问题并尝试了其他一些解决方案,但我想知道这个解决方案的结果是什么。

pip install --upgrade cmake
我尝试将 cmake 下载到新的虚拟环境中,效果很好。我还建议您从构建 cmake 开始一个新环境,然后继续下一步要安装的任何内容。


0
投票
任何想要

python 3.12

的人,请注意,目前没有
Python 3.12
轮子可用。

https://pypi.org/project/pyarrow/#files

希望它们将在

Arrow 14.0.0

 提供

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

© www.soinside.com 2019 - 2024. All rights reserved.