最近因为项目原因,安装了tf1.15.0版本,但安装完成显式如下warning,虽然不影响使用,但是看起来很难受,warning内容如下:
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'.
stackoverflow给出的解决方案是降低numpy
的版本,命令如下:
pip uninstall numpy
pip install numpy==1.16.4