BEGIN:
解決方案:更換更低版本(具體操作如下)
打開cmd,運行
pip list
查詢結果如下,找到tensorflow我這里版本為2.0.0a0
修改版本為1.5,執行如下命令
pip3 install tensorflow==1.5
結果
有點問題,更新一下:
pip install update tensorflow
結果如下:
用pip list查看一下,這時候版本為1.5.0:
這時候我這里出現了另一個隱藏的warning:
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_qint8 = np.dtype([("qint8", np.int8, 1)])
更改numpy版本,我這里原先是1.17.0,改為1.16
pip3 install numpy==1.16
額……還是有問題,老辦法
pip install update numpy
最后
pip list
好啦,問題解決了!
END.