问题
- 跑个pytorch一直在
No module named 'numpy.core._multiarray_umath'
和ImportError: cannot import name '_validate_lengths
两个错误反复横跳, 好气啊
解决办法
numpy
和scikit-image
都升到最新即解决- pip install --upgrade scikit-image
- pip install --upgrade numpy
- 升级完后numpy的版本为
1.16.5
, scikit-image的版本为0.15.0
环境
- win10+anaconda3+py3.6
参考
When importing tensorflow, I get the following error: No module named ‘numpy.core._multiarray_umath’