warn if both `tensorboard` and `tb-nightly` pip packages are installed
See original GitHub issueThis is a common source of inscrutable errors, because pip will happily install both pip packages even though they both ship the tensorboard
python package [1], and in doing so the second one will overwrite any files from the first one: https://github.com/pypa/pip/issues/4625. This means you can easily end up with a garbled frankentensorboard package (and it gets even worse if you uninstall one of them but not both of them, since then you get a frankentensorboard with a lot of vital organs removed).
Until pip fixes this mess, it’s a fact of life, but we can at least try to warn users about this pitfall ourselves.
[1] It’s colloquial to call both of these packages, so I’m prefixing to avoid confusion. See also https://github.com/pypa/packaging.python.org/issues/106
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:7 (2 by maintainers)
Top GitHub Comments
Quick update: TensorBoard itself doesn’t warn you about this failure mode, but our self-diagnosis script does: https://raw.githubusercontent.com/tensorflow/tensorboard/master/tensorboard/tools/diagnose_tensorboard.py
If you run it, you’ll get a message like:
It would still be nice to do this at runtime, too, as described in this issue.
Exactly. This happened to me. Didn’t realize for quite some time that I had an old TB installation lying around.