Python 未能从jupyter发射张力板

Python 未能从jupyter发射张力板,python,tensorflow,jupyter-notebook,tensorboard,Python,Tensorflow,Jupyter Notebook,Tensorboard,当我尝试从我的jupyter笔记本启动tensorboard时,出现以下错误。我使用的是conda环境和特定于env的内核,因为tensorflow仅安装在我的环境中。我做错了什么 错误: %tensorboard --logdir logs ERROR: Failed to launch TensorBoard (exited with -6). Contents of stderr: [libprotobuf ERROR external/com_google_protobuf/src/g

当我尝试从我的
jupyter笔记本
启动
tensorboard
时,出现以下错误。我使用的是
conda环境
和特定于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
内),我也会遇到问题:


我找到了以下解决方案。显然,这是运行
macOS Catalina
时出现的一个特定问题,可以通过切换到
protobuf版本3.8.0
来解决。因此,基本上卸载
tensorflow
protobuf
,然后使用
protobuf=3.8.0
重新安装。我找到了这个答案,请查看以了解更多信息。

conda update protobuf
为我解决了这个问题。我想您也可以使用pip进行升级,但我没有尝试

我尝试安装了
protobuf 3.8.0版
,但仍然遇到同样的问题。您是否已确保正确地重新安装了protobuf?列出您的软件包,查看它是否显示
protobuf 3.8.0
。是的,
protobuf
已正确安装:
Name:protobuf。版本:3.8.0。概要:协议缓冲区。主页:https://developers.google.com/protocol-buffers/.  作者:没有。作者电子邮件:无。许可证:3条款BSD许可证。位置:/usr/local/lib/python3.7/site-packages。需要:六个,安装工具。所需人员:tensorflow、tensorboard
tensorflow
/
tensorboard
版本是
2.0.0
?如果可以,请尝试返回
2.0.0
。这些是对我有用的版本。请注意,我在重新安装之前卸载了
ternsorflow
protobuf
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