pypy3口译员Pyarrow的失败的建筑轮

发布于 2025-02-06 09:45:20 字数 902 浏览 2 评论 0原文

我正在使用PYCHARM中的PYPY3作为解释器安装简化,并在此错误:Pyarrow的失败构建轮eform 我尝试了与Pyarrow相关的网络上找到的所有解决方案,但似乎所有发布的解决方案都适用于Python作为解释器,而不是Pypy。如果你们有任何解决方案,请告诉我。

命令:pip install shatlit 操作系统:Ubuntu 22.04 PYPY3版本:7.3.9

Traceback (most recent call last):
        File "/home/lungsang/Desktop/streamlit/.env/bin/cmake", line 5, in <module>
          from cmake import cmake
      ModuleNotFoundError: No module named 'cmake'
      error: command '/home/lungsang/Desktop/streamlit/.env/bin/cmake' 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

我在运行命令之前已经安装了CMAKE。

I am installing streamlit with pypy3 as interpreter in pycharm and stuck at this ERROR: Failed building wheel for pyarrow
I tried every solutions found on the web related with pyarrow, but seems like all solutions posted are for python as interpreter and not for pypy. If you guys have any solution, please let me know.

Command : pip install streamlit
Operating system : ubuntu 22.04
pypy3 version : 7.3.9

Traceback (most recent call last):
        File "/home/lungsang/Desktop/streamlit/.env/bin/cmake", line 5, in <module>
          from cmake import cmake
      ModuleNotFoundError: No module named 'cmake'
      error: command '/home/lungsang/Desktop/streamlit/.env/bin/cmake' 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 installed cmake before running the command.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

私野 2025-02-13 09:45:20

似乎目前Pyarrow不能与PYPY一起使用。

https://github.com/apache/arlow/arlow/arlow/issues/2089

Seems like currently pyarrow can't be use with pypy.

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

东京女 2025-02-13 09:45:20

您需要PYPY3 -M PIP安装CMAKE。这样,我不确定这是否有效。即使这样做,Pyarrow还是一个基于C ++的项目,因此Pypy Python Jit将很难找到加快Python代码的机会。此外,如果您可以完全可以运行,则模拟Python和C之间的CPYTHON相互作用的需求实际上可能比Cpython下的pypy速度较慢。

You need to pypy3 -m pip install cmake. With that, I am not sure this will work. Even if it does, pyarrow is a c++-based project, so the PyPy python JIT will have a hard time finding opportunities to speed up python code. Additionally, the need to emulate the CPython interactions between python and C mean the code may actually run slower under PyPy than under CPython, if you can get it to run at all.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文