I was able to resolve this by upgrading numpy, then using the "Start Locally" page of pytorch to install pytorch and all its correct dependencies.