简体   繁体   中英

Importing line_profiler on my m1 max leads to segmentation fault

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM