執行tensorflow時跳出警告訊息解決辦法
執行tensorflow時跳出警告訊息,但是程式還可以執行
是因為numpy版本過新
警告如下:
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'.
解決方法:
$ pip3 uninstall numpy
$ sudo pip3 install numpy==1.16
是因為numpy版本過新
警告如下:
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'.
解決方法:
$ pip3 uninstall numpy
$ sudo pip3 install numpy==1.16
留言
張貼留言