最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

I keep getting ModuleNotFoundError: No module named 'tensorflow.python' - Stack Overflow

programmeradmin1浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论