I struggled to install pytorch
on my Mac M1 chip.
I fixed the previous issue with mkl
here
Now I do:
conda install ipykernel jupyter numpy pandas matplotlib nomkl
pip install torch torchvision
python
import torch
and I get:
zsh:segmentation fault python
from terminal, when I run jupyter - the kernel just crashes
how to fix it?
its because of a numpy dependency conflict, try this one: first import numpy, and then torch:
import numpy; import torch
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With