Installing line_profiler For the Apple M1 ARM-based Chips
Recently, I found the need to install line_profiler
on my Apple M1 machine in order to profile some code in Jupyter. While pip
appeared to successfully install the package without any errors, I encountered segmentation faults when I loaded the package. Instead, the solution was to install directly from source :
Now, you should be able to use line_profiler
!