如何在vs code中查看tensorflow的版本

问题描述 投票:0回答:1
import tensorflow as tf
  File "C:\Users\HP\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\tensorflow\__init__.py", line 37, in <module>
    from tensorflow.python.tools import module_util as _module_util
ModuleNotFoundError: No module named 'tensorflow.python'

调试这个错误

我想运行代码

python tensorflow tensorflow-datasets
1个回答
0
投票

在终端中运行

pip show tensorflow
应该会给你你正在寻找的版本号

© www.soinside.com 2019 - 2024. All rights reserved.