简体   繁体   English

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

[英]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.我尝试安装 metaploit,但每次出现错误时都无法正常运行。

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.重新安装Pycharm和Python,安装64位版本。 (Running no other python or program) (不运行其他 python 或程序)
  • 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.) (最新的 python、pycharm 版本和我更新到最新版本的所有包。)

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

Are you using Python 3.11?您使用的是 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).因为在那种情况下,它在本期中有所描述: pyarrow还不支持 Python 3.11(这是pyarrow的 github 中的 PR ,它将在下一个版本中发布)。 So either you simply wait until that is released, or you install Python 3.10 until then.因此,您要么等待它发布,要么安装 Python 3.10 直到那时。

As of today, there is not pyarrow for Python 3.11 on wheel with precompiled binaries.截至今天,带有预编译二进制文件的 Python 3.11 上没有 pyarrow。 That means you have two options:这意味着您有两个选择:

  1. Build it yourself which is quite a ride [ pyarrow documentation]自己构建它是一个很好的过程 [ pyarrow文档]
  2. Use pip with the nightly build [ pyarrow documentation] which is reasonable:pip与合理的夜间构建[ pyarrow文档]结合使用:
pip install --extra-index-url https://pypi.fury.io/arrow-nightlies/ \
        --prefer-binary --pre pyarrow

The main error here you are getting is,您在这里遇到的主要错误是,

No module named 'cmake'

While you have gotten to the depths of the problem and tried a few other solutions I wonder what this one returned as a result.当您深入了解问题并尝试其他一些解决方案时,我想知道这个解决方案的结果是什么。

pip install --upgrade cmake 

I tried to download cmake into a new virtualenvironment and it worked just fine.我尝试将 cmake 下载到一个新的虚拟环境中,它工作得很好。 I would also suggest that you start a new environment start by building cmake and go along with whatever you are gonna install next.我还建议您开始一个新环境,首先构建 cmake 和 go 以及接下来要安装的任何内容。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 pip 安装变压器时出错:标记器 (pyproject.toml) 的构建轮:完成状态为“错误” - Error in pip install transformers: Building wheel for tokenizers (pyproject.toml): finished with status 'error' Scikit-learn 安装 - 准备元数据 (pyproject.toml)... 错误 - Scikit-learn installation - Preparing metadata (pyproject.toml) ... error 卡在 opencv-contrib-python (pyproject.toml) 的构建轮上 - Stuck on Building wheel for opencv-contrib-python (pyproject.toml) gevent (pyproject.toml) 的构建轮未成功运行 - Building wheel for gevent (pyproject.toml) did not run successfully 如何使用 pyproject.toml 构建万能轮 - How to build a universal wheel with pyproject.toml Python3 子进程因错误退出 (pyproject.toml) - Python3 Subprocess Exited with Error (pyproject.toml) 'tox' 和 'pyproject.toml' - 'tox' and 'pyproject.toml' 错误:无法为 numpy 构建轮子,错误:无法为 numpy 构建轮子,这是安装基于 pyproject.toml 的项目所必需的 - ERROR: Failed building wheel for numpy , ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects conda-build 错误:目录 '.' 不可安装。 未找到“setup.py”和“pyproject.toml” - conda-build error: Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found 制作 Python Package - pyproject.toml 失败 - 遵循教程并出现错误 - Making Python Package - Failing on pyproject.toml - Following Tutorial and Getting Error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM