'Getting error in Spyder Anaconda from Keras Libraries CNN: WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation

I am trying to implement the Keras libraries for Convolutional Neural Networks on my Spyder IDE using Anaconda as such:

from keras.models import Sequential     
from keras.layers import Conv2D  
from keras.layers import MaxPooling2D   
from keras.layers import Flatten        
from keras.layers import Dense

When I just execute this piece of code, I get this error:

runcell(0, 'C:/Users/shubh/Desktop/P14-Convolutional-Neural-Networks/Convolutional_Neural_Networks/myCNN.py')
Using TensorFlow backend.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.
WARNING:root:Limited tf.compat.v2.summary API due to missing TensorBoard installation.

I downgraded from Python 3.7 to 3.6 so I can use Keras and Tensorflow. I did an Artificial Neural Network program and it worked successfully. But when I import these libraries for CNN, I am getting these errors. And I understand it says missing Tensorboard installation, how if this is the solution, please advise me on how to do this as I haven't seen any sources that have worked for me. Again, I use anaconda, not pip.

Thanks!



Solution 1:[1]

This is just a warning. Have you tried running your CNN?

Here is a Github issue that talks about what you are seeing

Solution 2:[2]

This eliminated the warning for me:

pip uninstall tensorboard
pip install tensorboard

I now have tensorflow version 2.4.1 and tensorboard version 2.5.0

Solution 3:[3]

Running conda install Tensorboard in the terminal worked for me.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Anna Maule
Solution 2 ezChx
Solution 3 richardec