conda更新后,我发现tensorboard没法调日志了
tensorboard --logdir=logs #终端调用日志,注意在你torch的环境下的终端
报错:
ModuleNotFoundError: No module named 'requests.adapters'
解决办法:
pip uninstall requests #先卸载request库
pip install requests #在下载
pip uninstall tensorboard #再卸载掉tensorboard
pip install tensorboard #下载回来
我这个问题应该是我在实验openai的一些库的时候某些依赖项不匹配造成的,在我下载完request之后pip报了一个警告:
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.
openai 0.8.0 requires tqdm, which is not installed.
大概意思就是openai缺少tqdm依赖项,我先下载了这个依赖项然后再进行了tensorboard的卸载安装,应该与conda更新以及我实验openai以及transformer有关,在网上没怎么看到有这种问题的,做个记录。