tensorflow 安装报错常见问题

本文介绍了解决TensorFlow安装过程中出现的错误initializationof_pywrap_tensorflowraisedunreportedexception的方法,即更新six包。同时针对更新后可能出现的Errorimportingtensorflow的问题,提出了安装protobuf包作为解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

再运行tensorflow时如果出现以下错误:

initialization of _pywrap_tensorflow rasied unreported exception

说明package six没有更新,应当重新更新six包,在pycharm环境中直接重新下载six即可

如果在更新完six之后出现以下错误:

Error importing tensorflow. Unless you are using bazel, you should not try to import tensorflow from its source directory; please exit the tensorflow source tree, and relaunch your python interpreter from there.
则安装package protobuf即可解决
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值