tensorflow和python不兼容_tensorflow与numpy的版本兼容性问题的解决

在Python交互式窗口导入tensorflow出现了下面的错误:ox8免费资源网

root@ubuntu:~# python3

Python 3.6.8 (default, Oct 7 2019, 12:59:55)

[GCC 8.3.0] on linux

Type "help", "copyright", "credits" or "license" for more information.

>>> import tensorflow as tf;

/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:516: 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)])

/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/dtypes.py:517: 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.dty

你可能感兴趣的:(tensorflow和python不兼容_tensorflow与numpy的版本兼容性问题的解决)