使用TensorFlow时报错FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy.......
报错原因:numpy1-17-0版本过高,使用numpy-1.16-0版本即可
解决方法:重新安装numpy-1.16-0
pip install numpy==1.16.0
欢迎关注我的微信公众号免费获取海量python视频教程,定期更新电子图书资源


本文详细介绍了在使用TensorFlow时遇到的FutureWarning错误,该错误与numpy版本过高有关。文章提供了降低numpy版本至1.16.0的具体方法,以避免此警告并确保TensorFlow的正常运行。
245

被折叠的 条评论
为什么被折叠?



