在使用TensorFlow时出现警告信息:
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy.......
报错原因是由于使用的numpy版本过高,可以降低numpy版本试试
先查看一下numpy的版本
python环境下输入:
>>> import numpy
>>> numpy.__version__
'1.19.3'
然后重新安装
pip install numpy==1.16.0