问题描述:
import tensorflow,出现 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版本过高。
解决方式:
(1)卸载高版本numpy。
pip uninstall numpy
(2)重新安装1.6.0版本。
pip install numpy==1.6.0 -i https://pypi.tuna.tsinghua.edu.cn/simple