Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'tensorboard' #115

Open
ZhangJiaRed opened this issue Oct 18, 2023 · 1 comment
Open

ModuleNotFoundError: No module named 'tensorboard' #115

ZhangJiaRed opened this issue Oct 18, 2023 · 1 comment

Comments

@ZhangJiaRed
Copy link

Traceback (most recent call last):
File "D:\anaconda\envs\yolov5-pytorch-bilibili\lib\site-packages\torch\utils\tensorboard_init_.py", line 2, in
from tensorboard.summary.writer.record_writer import RecordWriter # noqa F401
ModuleNotFoundError: No module named 'tensorboard'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:/desktop/yolov5-pytorch-bilibili/train.py", line 14, in
from utils.callbacks import LossHistory
File "D:\desktop\yolov5-pytorch-bilibili\utils\callbacks.py", line 9, in
from torch.utils.tensorboard import SummaryWriter
File "D:\anaconda\envs\yolov5-pytorch-bilibili\lib\site-packages\torch\utils\tensorboard_init_.py", line 4, in
raise ImportError('TensorBoard logging requires TensorBoard with Python summary writer installed. '
ImportError: TensorBoard logging requires TensorBoard with Python summary writer installed. This should be available in 1.14 or above.

进程已结束,退出代码1

导! 为啥我运行train文件会报这个错,环境用的是你的那个torch=1.2.0。

@onlywordding
Copy link

我也遇到了,pip install tensorboard就可以了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants