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 of numpy, it will be understood as (type, (1,)) / ‘(1,)type’. np_resource = np.dtype([(“resource”, np.ubyte, 1)])
警告信息
D:\ProgramData\Anaconda3\envs\mixly_integration\lib\site-packages\tensorflow\python\framework\dtypes.py:528: 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'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
解决办法
pip install -i https://pypi.douban.com/simple numpy==1.14.5
警告原因
Installing collected packages: numpy
Attempting uninstall: numpy
Found existing installation: numpy 1.19.5
Uninstalling numpy-1.19.5:
Successfully uninstalled numpy-1.19.5
Successfully installed numpy-1.14.5
新版numpy中更换了方法,不支持老版本。所以需要对numpy做降版本操作
欢迎大家交流学习,任何问题都可以留言
还没有评论,来说两句吧...