其他分享
首页 > 其他分享> > FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of type is deprecated; in a future version

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完美解决

标签:synonym,numpy,version,报错,import,type,FutureWarning
来源: https://blog.csdn.net/qq_57076285/article/details/121756143