![](/img/trans.png)
[英]Error in pip install transformers: Building wheel for tokenizers (pyproject.toml): finished with status 'error'
[英]Installation error streamlit: Building wheel for pyarrow (pyproject.toml) ... error
我尝试安装 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
我已经尝试过以下方法:
尝试了这些命令:
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 3.11 吗? 因为在那种情况下,它在本期中有所描述: pyarrow
还不支持 Python 3.11(这是pyarrow
的 github 中的 PR ,它将在下一个版本中发布)。 因此,您要么等待它发布,要么安装 Python 3.10 直到那时。
截至今天,带有预编译二进制文件的 Python 3.11 上没有 pyarrow。 这意味着您有两个选择:
pyarrow
文档]pip
与合理的夜间构建[ pyarrow
文档]结合使用:pip install --extra-index-url https://pypi.fury.io/arrow-nightlies/ \
--prefer-binary --pre pyarrow
您在这里遇到的主要错误是,
No module named 'cmake'
当您深入了解问题并尝试其他一些解决方案时,我想知道这个解决方案的结果是什么。
pip install --upgrade cmake
我尝试将 cmake 下载到一个新的虚拟环境中,它工作得很好。 我还建议您开始一个新环境,首先构建 cmake 和 go 以及接下来要安装的任何内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.