提问人:Olivier Maxwell 提问时间:11/14/2023 更新时间:11/24/2023 访问量:57
在笔记本中导入 Polars 会导致内核崩溃
Importing Polars in a notebook causes kernel to crash
问:
导入 Polars polars==0.19.7 让我的内核崩溃 原木:
import polars
The Kernel crashed while executing code in the the current cell or a previous cell. Please review the code in the cell(s) to identify a possible cause of the failure. Click here for more info. View Jupyter log for further details.
15:51:25.818 [info] Restarted 58cbe489-1e15-4ee8-a740-73c20717dff4
15:51:30.344 [info] Handle Execution of Cells 0 for ~/dev/playground/test.ipynb
15:51:30.352 [info] Kernel acknowledged execution of cell 0 @ 1699973490351
15:51:30.447 [error] Disposing session as kernel process died ExitCode: undefined, Reason:
15:51:30.448 [info] Dispose Kernel process 6740.
15:51:30.462 [info] End cell 0 execution @ undefined, started @ 1699973490351, elapsed time = -1699973490.351s
有人会知道是什么原因造成的吗?
答:
2赞
seanv507
11/24/2023
#1
你试过 https://github.com/pola-rs/polars/issues/12292 吗
您是否希望 Polars 在旧 CPU 上运行(例如,2011 年之前的 CPU),
还是在 Rosetta 下的 Apple Silicon 上的 x86-64 Python 版本上?安装。此版本的 Polars 编译时没有
AVX 目标功能。pip install polars-lts-cpu
“Celeron”和“Pentium”处理器将没有 AVX(即使在 2011 年之后)
https://www.ikmultimedia.com/faq/?id=1254
lscpu
会告诉你你在Ubuntu上的处理器系列
评论
0赞
Olivier Maxwell
11/24/2023
是的,问题出在苹果硅上!谢谢
评论