這是我到目前為止所發現的。升級 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 版本嗎?我正在尋找解釋和解決方案。謝謝
添加回答
舉報
0/150
提交
取消