Fake tensorflow importable even when uninstalled

Viewed 17

My problem could be potentially related to this: Python 3.7.8 Imports an uninstalled Tensorflow Version

I am trying to test some conditions in my code on conditions when it fails to import tensorflow. So I uninstalled tensorflow using pip uninstall (which successfully ended without error) and tried to run the code again. The problem is it still can import tensorflow from somewhere!

The 'fake' tensorflow loaded does not have any functions it should have, so basically the only thing that works is

import tensorflow
print(tensorflow.__file__)

This returns None, so I cannot even find where it is loading this thing from. Even .__version__ tells me there is no such function.

Has anyone experienced this? What can I do to solve this?

Thank you!

0 Answers
Related