[英]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:我已经尝试过以下方法:
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:
这意味着您有两个选择:
pyarrow
documentation]pyarrow
文档]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.