问题提示: 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'.
可以通过这行代码查看版本 :
pip show numpy
检查一下numpy的版本,我的是17.1最新的版本需要降级: pip install numpy<1.17
我降级到,1.16.1
代码时:
pip install -U numpy==1.16.1
问题解决哒
可能版本太低也会出现问题不要讲