[Python] I keep getting ModuleNotFoundError: No module named 'tensorflow.python'

Discussão em 'Python' iniciado por Stack, Janeiro 30, 2025.

  1. Stack

    Stack Membro Participativo

    I have to import TensorFlow to load the ResNet50 model but tensor isn't working or downloading cus of some issue.

    import tensorflow as tf


    This error keeps showing up when I run the code.

    Traceback (most recent call last):
    File "C:\Users\oz\OneDrive\Desktop\Sherlock\recognition.py", line 1, in <module>
    import tensorflow as tf
    File "C:\Users\oz\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\tensorflow\__init__.py", line 38, in <module>
    from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow # pylint: disable=unused-import
    ModuleNotFoundError: No module named 'tensorflow.python'

    Process finished with exit code 1


    Kept trying uninstalling and reinstalling multiple versions but to no avail.

    How to resolve this?

    Continue reading...

Compartilhe esta Página