profile
viewpoint

Ask questionsTensorBoard logging requires TensorBoard with Python summary writer installed. This should be available in 1.14 or above

Traceback (most recent call last): File "/home/tian/.conda/envs/jiqi/lib/python3.6/site-packages/torch/utils/tensorboard/init.py", line 2, in <module> from tensorboard.summary.writer.record_writer import RecordWriter # noqa F401 File "/home/tian/Desktop/ai/machine-learn/Image_recognition/tensorboard.py", line 3, in <module> from torch.utils.tensorboard import SummaryWriter ImportError: cannot import name 'SummaryWriter'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/tian/Desktop/ai/machine-learn/Image_recognition/tensorboard.py", line 3, in <module> from torch.utils.tensorboard import SummaryWriter File "/home/tian/.conda/envs/jiqi/lib/python3.6/site-packages/torch/utils/tensorboard/init.py", line 4, in <module> 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

pytorch/pytorch

Answer questions Maghoumi

In case you've already tried pip install tb-nightly but still get the error message about TensorBoard 1.14, it could be that the TensorBoard packages in your ~/.local are older than 1.14.

This can happen if you install packages via pip install --user ... and some other packages via sudo pip install ..., which is known to mess things up.

useful!

Related questions

AttributeError: module 'torch.jit' has no attribute 'unused' hot 3
Script freezes with no output when using DistributedDataParallel hot 2
Adding Pixel Unshuffle hot 2
DataLoader leaking Semaphores. hot 2
[feature request] Add matrix exponential hot 2
cublas runtime error on torch.bmm() with CUDA10 and RTX2080Ti hot 2
libtorch does not initialize OpenMP/MKL by default hot 2
Use torch.device() with torch.load(..., map_location=torch.device()) hot 2
Cuda required when loading a TorchScript with map_location='cpu' hot 2
PyTorch 1.5 failed to import c:miniconda3-x64envs estlibsite-packages orchlibcaffe2_nvrtc.dll - pytorch hot 2
Error during import torch, NameError: name &#39;_C&#39; is not defined - pytorch hot 2
Quantisation of object detection models. hot 2
Problems with install python from source hot 2
torch.utils.tensorboard.SummaryWriter.add_graph do not support non-tensor inputs - pytorch hot 2
a retrained and saved jit module could not be reload. hot 2
source:https://uonfu.com/
Github User Rank List