使用Tensorboard碰到AttributeError: module ‘distutils‘ has no attribute ‘version‘

在这里插入图片描述当出现这个错误时

说明 当前tensorboard的版本和你安装的pytorch版本不匹配,tensorboard版本太 高,pytorch太低。

使用conda list查看你的setuptools版本

conda list

在这里插入图片描述我的版本有点高68,所以我需要降低版本,使用以下命令降低版本

pip uninstall setuptools  //卸载之前的版本
pip install setuptools==59.5.0 //需要比你之前的低 

猜你喜欢

转载自blog.csdn.net/qq_41309350/article/details/133087959