gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 06:22:37 25 4
gpt4 key购买 nike

我在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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com