Understanding the Causes of tensorboard ImportError

Asked 2 years ago, Updated 2 years ago, 49 views

Attempting to boot the sensorboard server at cmd

tensorboard — logdir=./logfile

If you enter , the following error will appear.

ImportError: cannot import name lazy
Below is the cmd screen of the error.
Screen with ImportError

Even if you try reinstalling tensorflow,
Even if you look at the link below,
The error did not resolve.
https://github.com/tensorflow/tensorboard/issues/1862

If anyone is experiencing a similar phenomenon,
Do you have any?
Also, if anyone knows the cause,
Please let me know.

environment

  • OS:Windows 8.1
  • Python: 3.6.3
  • tensorflow:1.14.0
  • tensorboard: 1.14.0
  • tensorflow-estimator:1.14.0
  • Installing the python environment using anaconda.
    -tensorboard.exe is going through the path of the directory.

Also
I built a new environment in conda (environment name: py363_for_tensorflow) and ran the tensorboard after installing tensorflow, but I still get the same error (ImportError).The stack trace at that time is as follows:
Error after creating another environment

The version of tensorflow installed in a different environment is as follows:
New environment sensorflow version

python tensorflow

2022-09-30 17:39

1 Answers

Are you running commands in the directory where tensorboard is installed?Isn't that why the module loading is not going well?


2022-09-30 17:39

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.