python - 导入tensorflow时出错(刚刚安装)python 3.7

标签 python tensorflow pip python-3.7 importerror

我在Windows 10机器上安装了python 3.7,根本没有自定义的东西,来安装我使用的tensorflow:

pip3 install --user --upgrade tensorflow

但是当我尝试使用以下方式导入它时: 导入 tensorflow 在 python 脚本或 shell 中,它给我以下错误:

ImportError: DLL load failed: The specified module could not be found.

我做错了什么吗?

编辑:顺便说一句,pip 版本是 20.0.2,我之前尝试过 pip 10.x 并得到了相同的结果。

最佳答案

关于https://github.com/tensorflow/tensorflow/issues/35749https://github.com/tensorflow/tensorflow/issues/36859 (以及相同重复问题的数量)对于某些 Windows 计算机,tensorflow 2.1 最近存在一些问题。 到目前为止的修复是在 Windows 上使用 TensorFlow 2.0:

pip install tensorflow==2.0

更多细节,这很详细:https://github.com/tensorflow/tensorflow/issues/36167#issuecomment-577886156

关于python - 导入tensorflow时出错(刚刚安装)python 3.7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60289570/

相关文章:

Python 请求 POST 不起作用

python - 错误 : tensorboard 2. 0.2 要求 setuptools>=41.0.0,但您将拥有不兼容的 setuptools 40.6.2

android - 如何在android中读取tensorflow内存映射图文件?

python - 参数 : Input to reshape is a tensor with x values, 无效,但请求的形状需要 y 的倍数。 {节点 Reshape_13}

python - 属性错误: module 'websocket' has no attribute 'WebSocketApp' pip

python - 删除字符串列表中第一次出现 X 之前的所有内容

python - 带有 redirect_uri 的 social-auth-app-django facebook 后端状态

python - 删除空行和数据行在 DataFrame pandas 中不匹配

python - Scala 有 pip/easy_install 吗?

python - 无法安装 keyrings.google-artifactregistry-auth,需要 Rust?