为了账号安全,请及时绑定邮箱和手机立即绑定

使用 tensorflow 将 protobuf leeds 升级为警告

使用 tensorflow 将 protobuf leeds 升级为警告

忽然笑 2021-08-24 17:28:48
这是我到目前为止所发现的。升级 protobuf 导致:$ pip3 install --upgrade protobufCollecting protobuf  Using cached https://files.pythonhosted.org/packages/18/e7/785830a65d1f1faba7dccfa8314f7afded1db8cc2860218226ba4b3f6150/protobuf-3.6.1-cp37-cp37m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whlRequirement already satisfied, skipping upgrade: setuptools in /usr/local/lib/python3.7/site-packages (from protobuf) (40.5.0)Requirement already satisfied, skipping upgrade: six>=1.9 in /usr/local/lib/python3.7/site-packages (from protobuf) (1.11.0)tensorflow 0.12.0 has requirement protobuf==3.1.0, but you'll have protobuf 3.6.1 which is incompatible.Installing collected packages: protobuf  Found existing installation: protobuf 3.1.0    Uninstalling protobuf-3.1.0:      Successfully uninstalled protobuf-3.1.0Successfully installed protobuf-3.6.1简而言之:tensorflow 0.12.0 has requirement protobuf==3.1.0。为什么需要最新的 tensorflow 版本和旧的 protobuf 版本?但这更奇怪:$ pip3 install --upgrade tensorflow...tensorboard 1.12.0 has requirement protobuf>=3.4.0我的结论正确吗?tensorflow 和 tensorboard 需要不同版本的 protobuf?怎么样?我错过了什么?我发现了一个类似的错误,但我没有完全理解它。Mac 操作系统和 cpython 的东西。问题链接:https : //github.com/google/or-tools/issues/681我使用 macOS 并且我已经用 Homebrew 安装了 python。它会帮助我安装较旧的 python 版本吗?我正在寻找解释和解决方案。谢谢
查看完整描述

1 回答

?
Cats萌萌

TA贡献1805条经验 获得超9个赞

原来 Tensorflow 不支持最新版本的 python。Pip 找不到适用于 python 3.7 的最新版本的 Tensorflow。


查看完整回答
反对 回复 2021-08-24
  • 1 回答
  • 0 关注
  • 567 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号