[英]Failing to launch tensorboard from jupyter
當我嘗試從jupyter notebook
啟動tensorboard
時,出現以下錯誤。 我正在使用conda environment
並使用特定於 env 的內核,因為tensorflow
僅安裝在我的環境中。 我究竟做錯了什么?
錯誤:
%tensorboard --logdir logs
ERROR: Failed to launch TensorBoard (exited with -6).
Contents of stderr:
[libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/descriptor_database.cc:393] Invalid file descriptor data passed to EncodedDescriptorDatabase::Add().
[libprotobuf FATAL external/com_google_protobuf/src/google/protobuf/descriptor.cc:1367] CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
libc++abi.dylib: terminating with uncaught exception of type google::protobuf::FatalException: CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
編輯
即使我嘗試從終端啟動(在我的conda env
),我也遇到了問題:
tensorboard --logdir = 'logs/'
[libprotobuf ERROR external/com_google_protobuf/src/google/protobuf/descriptor_database.cc:393] Invalid file descriptor data passed to EncodedDescriptorDatabase::Add().
[libprotobuf FATAL external/com_google_protobuf/src/google/protobuf/descriptor.cc:1367] CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
libc++abi.dylib: terminating with uncaught exception of type google::protobuf::FatalException: CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
Abort trap: 6
我找到了以下解決方案。 顯然,這是運行macOS Catalina
時出現的特定問題,可以通過切換到protobuf version 3.8.0
來解決。 所以基本上卸載tensorflow
和protobuf
並使用protobuf = 3.8.0
重新安裝。 我在這里找到了這個答案,查看更多信息。
conda update protobuf
為我解決了這個問題。 我假設您也可以使用 pip 升級,但我沒有嘗試
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.