亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

使用 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 關注
  • 592 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號