This is what worked for me:
conda create –n tf python==3.11
conda activate tf
pip install tensorflow==2.15
conda install ipykernel
python -m ipykernel install --user --name tf --display-name "Python 3.11 TF“
jupyter notebook
If error when opening jupyter notebook **pip install --force-reinstall charset-normalizer==3.1.0
Now it works and I can perfectly run CNN.