TensorFlow stopped working after installing opencv I am working on projects that use TensorFlow and Keras and I did the hello-world MNIST project successfully and later I tried to run some other project and TF suddenly stopped working. Now it doesn't even work on the old project. I am working in conda envs and my editor is VSC. Here is the error that I am getting:
Traceback (most recent call last):
  File &quot;c:/Users/miliv/MLRadionica/TensProba.py&quot;, line 3, in &lt;module&gt;
    from tensorflow import nn
  File &quot;C:\Users\miliv\Miniconda3\envs\tf\lib\site-packages\tensorflow\__init__.py&quot;, line 101, in &lt;module&gt;
    from tensorflow_core import *
  File &quot;C:\Users\miliv\Miniconda3\envs\tf\lib\site-packages\tensorflow_core\__init__.py&quot;, line 40, in &lt;module&gt;
    from tensorflow.python.tools import module_util as _module_util
ModuleNotFoundError: No module named 'tensorflow.python.tools'; 'tensorflow.python' is not a package

I tried reinstalling TensorFlow a couple of times but it didn't help. The only thing that comes to my mind is that it has to do something with installing OpenCV maybe because of some packages, but I haven't changed anything else.
I have tried creating a new conda env with TF and without OpenCV but it still throws me the same error.
The first and foremost thing we needs to aware is , from installation perspective is there any micro level relationship between tensorflow and openCV , so that it could help us out in troubleshooting the above issue.
But yes    this link will help you out in accomplishing your tensorflow/openCV setup installation