This article records the solutions for bloggers to report errors in Import torch
in Python. Updated on March 20, 2019.
This error is due to the current version of numpy does not meet the requirements.
First, run on the terminal:
python
import numpy
numpy.version
View the current version of numpy. Run after
pip3 install –upgrade numpy
Just update the numpy version. If it’s python2, use PIP
.
More, welcome to the planet discussion.