As I said in the title importing line_profiler
leads to segmentation fault. I am running python 3.9.7/conda-forge on a macbook pro m1 max. Does anyone have any suggestions how I can resolve this?
% 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 Thanks that solved it. Similar to Seanlaw on github the following did it for me.