tensorflow 的异常信息解决

2020-01-18  本文已影响0人  李飞_fd28

异常大概如下:

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
上一篇下一篇

猜你喜欢

热点阅读