pypy3口译员Pyarrow的失败的建筑轮
我正在使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
似乎目前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
您需要
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.