python 运行 tensorboardX 时 对于 ImportError: cannot import name 'descriptor' 报错的解决

pip uninstall tensorboardX
pip uninstall protobuf

这里一定要添加 --no-cache-dir 参数

我使用的版本是 2.1.0 ,大家在使用该语句时可以自行修改版本号

pip install --no-cache-dir tensorflow==2.1.0