FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of type is deprecated; in a future version

import tensoflow

import keras

报错: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和tensorflow不适配

解决:降低numpy版本

报错前:

tensorflow==1.5.0

numpy==1.19.5

pip install numpy==1.16完美解决

上一篇:【错题积累】牛客网计算机网络习题


下一篇:elasticsearch 同义词权重搜索