美文网首页
tensorflow 的异常信息解决

tensorflow 的异常信息解决

作者: 李飞_fd28 | 来源:发表于2020-01-18 08:40 被阅读0次

    异常大概如下:

    dtypes.py:523: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
    

    解决方案如下:
    原因是 numpy 的版本不对

    Do you have multiple versions of numpy installed in your system?
    pip show numpy
    Can you uninstall all numpy versions and later install numpy==1.16.4?
    pip uninstall numpy (till you uninstall all versions)
    pip install numpy==1.16.4
    

    相关文章

      网友评论

          本文标题:tensorflow 的异常信息解决

          本文链接:https://www.haomeiwen.com/subject/mcckzctx.html