导入Tensorflow时如何解决此错误?

时间:2020-06-07 13:51:51

标签: python windows tensorflow

问题:当我在python中输入“ import tensorflow as tf”时出现错误:

__module__ = 'tensorflow.core.framework.resource_handle_pb2'
TypeError: expected bytes, Descriptor found

背景:我已经在没有GPU的Windows 10上成功安装了Anaconda的python 3.6和Tensorflow 2.0:pip3 install tensorflow==2.0.0 -i https://pypi.douban.com/simple,我认为该版本不是问题,因为一周前运行良好,但是现在出现错误

有人知道如何解决此错误吗?谢谢〜

0 个答案:

没有答案