RuntimeError: PyTorch was compiled without NumPy support

原因:Pytorch和Numpy版本不匹配

查看自己Pytorch和Numpy版本

(1)执行【pip show torch】和【pip show numpy】查看版本信息(可通过【pip -h】查看pip命令

(2)执行【pip uninstall torch】卸载当前版本torch并执行【pip install torch==0.4.1.post2】安装该版本torch

(3)如(2)同样方式安装numpy==1.15.0

问题解决!

posted @ 2020-03-27 21:15  DuanYongchun  阅读(2291)  评论(0编辑  收藏  举报