1. 程式人生 > >AttributeError: module 'numpy' has no attribute 'integer'(2)

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

圖中的紅色框標註了我的錯誤,導致我的tensorflow無法使用

修改附圖:
這裡寫圖片描述
使用pip install -U numpy命令,我的numpy正確重灌。

成功安裝後,測試效果圖:
這裡寫圖片描述
放心使用吧!

附加:
這個錯誤,我竟然查了很久,最終谷歌解釋最多,都是相關英文版解釋,自己試著去修正錯誤,得到正確改正,不足之處,指點指點!