[深度學習]解決python調用TensorFlow時出現FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecate


使用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'._np_quint8 = np.dtype([("quint8", np.uint8, 1)])的錯誤

報錯原因:numpy1-17-0版本過高,使用numpy-1.16-0版本即可

解決方法:重新安裝numpy-1.16-0

解決方法:

命令提示符中

 pip install numpy==1.16.0 

或者直接在集成開發工具如Pycharm中直接

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM