在我的 m1 max 上导入 line_profiler 会导致分段错误

Importing line_profiler on my m1 max leads to segmentation fault

正如我在标题中所说,导入 line_profiler 会导致分段错误。我在 macbook pro m1 max 上 运行 python 3.9.7/conda-forge。有人对我如何解决这个问题有什么建议吗?

% python 
Python 3.9.7 | packaged by conda-forge | (default, Sep 29 2021, 19:24:02) 
[Clang 11.1.0 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import line_profiler
zsh: segmentation fault  python

% conda list | grep line_profiler
line_profiler             3.3.1            py39h4d2d688_1    conda-forge

@AKX 谢谢,解决了。 类似于 Seanlaw on github 下面是为我做的。