学习tensorboard的时候运行tensorboard --logdir=logs
一开始显示错误;
ImportError: cannot import name '_plain_int' from 'werkzeug._internal'
将其进行更新
pip install --upgrade werkzeug
虽然更新成功但是中间显示出一行小字:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. tensorboard 2.10.0 requires protobuf<3.20,>=3.9.2, but you have protobuf 3.20.3 which is incompatible. ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. tensorboard 2.10.0 requires protobuf<3.20,>=3.9.2, but you have protobuf 3.20.3 which is incompatible.
于是卸载了protobuf:
conda uninstall protobuf
重新安装了新的版本:
pip install protobuf==3.19
再次运行:
tensorboard --logdir=logs
发现成功,很多包的问题其实都是版本不兼容的问题