ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

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

2021-12-06 21:31:30  阅读:62  来源: 互联网

标签:synonym numpy version 报错 import type FutureWarning


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

专注分享技术,共同学习,共同进步。侵权联系[admin#icode9.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有