numpy.core.multiarray failed to import solution

When importing import torch, the following situation occurs:

The root cause is that the numpy version is too low. The solution is as follows: first uninstall the lower version of numpy, and then install the new version of numpy, that is

pip uninstall numpy

pip install -U numpy

 You're done, as follows:

Related Posts