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

在使用Python 3.6.8和TensorFlow时遇到FutureWarning,提示NumPy的某些用法在将来版本中将改变。错误由高版本的NumPy(1.17.3)引起。通过降级NumPy到1.14.0版本解决了该问题,成功导入TensorFlow 1.14.0。
摘要由CSDN通过智能技术生成

tensorflow与numpy的版本兼容性问题的解决,版本,站长站,错误,文章,较高

tensorflow与numpy的版本兼容性问题的解决

易采站长站,站长之家为您整理了tensorflow与numpy的版本兼容性问题的解决的相关内容。

在Python交互式窗口导入tensorflow出现了下面的错误:

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 synony

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值