AttributeError: module 'numpy' has no attribute 'integer'(2)

图中的红色框标注了我的错误,导致我的tensorflow无法使用
AttributeError: module 'numpy' has no attribute 'integer'(2)

修改附图:
AttributeError: module 'numpy' has no attribute 'integer'(2)
使用pip install -U numpy命令,我的numpy正确重装。

成功安装后,测试效果图:
AttributeError: module 'numpy' has no attribute 'integer'(2)
放心使用吧!

附加:
这个错误,我竟然查了很久,最终谷歌解释最多,都是相关英文版解释,自己试着去修正错误,得到正确改正,不足之处,指点指点!