ImportError: torch>=1.5.0 is required for a normal functioning of this module, but found torch==1.4.

问题描述

执行代码时出现

ImportError: torch>=1.5.0 is required for a normal functioning of this module, 
but found torch==1.4.0.

原因分析:

之前安装的torch=1.4.0相关的依赖没有删除干净,导致冲突。


解决方案:

将torch=1.4.0相关依赖删除,主要是在anaconda\pkgs和anaconda\Lib\site-packages文件夹中。

你可能感兴趣的:(PaddleHub爬坑之路,python,pytorch)