Pytorch won't install in PyCharm on MacOS
Try building from the source code, run these commands

git clone https://github.com/pytorch/pytorch.git
cd pytorch
git submodule update --init --recursive
python3 setup.py build
python3 setup.py install
I'm new to the MacOS and I have recently downloaded PyCharm on it. I was able to successfully install some packages like numpy, matplotlib, sympy, etc. However, Pytorch won't get installed; not through PyCharm nor through the Terminal. These are the commands I tried in the Terminal (other than attempting to install them directly from PyCharm):

pip install torch
pip install torch torchvision torchaudio

I could post the error messages but some are quite lengthy :(
I'm using Python 3.9 interpreter with pip on the latest version (20.2.4) (everything else is also up to date). Running this on the new Mac Mini (running the M1 chip).
Any ideas on what I should do? Thanks!!!