python导入模块报错FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated;

问题:

导入tensorflow时发生告警
tensorflow\python\framework\dtypes.py:516: 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将来的版本不支持xxxx

解决:

降版本
pip install numpy==1.16.4

你可能感兴趣的:(python问题)