Python安裝TensorFlow常見問題

問題:ERROR: tensorboard 1.14.0 has requirement setuptools>=41.0.0, but you'll have setuptools 39.0.1 which is incompatible.

原因:tensorboard 1.14.0 需要setuptools的版本至少41.0.0

解決:pip install --upgrade setuptools


問題:ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'

原因:該numpy版本沒有‘numpy.core._multiarray_umath’

解決:pip install --upgrade numpy


問題:FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecat

原因:該numpy版本不匹配tensorflow版本(我的python版本3.7.0,TensorFlow版本1.14.0,numpy跟新之後的版本1.17.0不匹配)

解決:pip uninstall  numpy         pip install numpy==1.16.0


 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章