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

Daa*_*aan 10 python runtime-error streamlit

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

\n

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

\n
pip install --upgrade streamlit\n\n(Deleted a lot of irrelevant information)\n\n\nBuilding wheels for collected packages: pyarrow\n  Building wheel for pyarrow (pyproject.toml) ... error\n  error: subprocess-exited-with-error\n\n  \xc3\x97 Building wheel for pyarrow (pyproject.toml) did not run successfully.\n  \xe2\x94\x82 exit code: 1\n  \xe2\x95\xb0\xe2\x94\x80> [291 lines of output]\n\n\n  ModuleNotFoundError: No module named 'cmake'\n      error: command 'D:\\\\Eind Project Programming Final\\\\venv\\\\Scripts\\\\cmake.exe' failed with exit code 1\n      [end of output]\n\n  note: This error originates from a subprocess, and is likely not a problem with pip.\n  ERROR: Failed building wheel for pyarrow\nFailed to build pyarrow\nERROR: Could not build wheels for pyarrow, which is required to install pyproject.toml-based projects\n\n\n
Run Code Online (Sandbox Code Playgroud)\n

我已经尝试过以下操作:

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

尝试过这些命令:

\n
pip uninstall streamlit\npip uninstall wheel \npip uninstall setuptools\npip uninstall pip\npip install --upgrade streamlit\npip install --upgrade matplotlib\npip install --upgrade setuptools\npip install --upgrade wheel\npip install --upgrade pyarrow\npip install --upgrade cmake\n
Run Code Online (Sandbox Code Playgroud)\n

M.O*_*.O. 12

你使用的是Python 3.11吗?因为这样的话,本期中是这样描述的:pyarrow还不支持Python 3.11(这里是github上的PRpyarrow,会在下一个版本中到达)。因此,您要么等待发布,要么安装 Python 3.10 直到那时。


Mic*_*ner 6

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

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


小智 3

您遇到的主要错误是,

No module named 'cmake'
Run Code Online (Sandbox Code Playgroud)

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

pip install --upgrade cmake 
Run Code Online (Sandbox Code Playgroud)

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