gpt4 book ai didi

python - 导入 TensorFlow 时出错 : Illegal instruction (core dumped)

转载 作者:可可西里 更新时间:2023-11-01 11:51:32 32 4
gpt4 key购买 nike

我按照他们网站上的说明安装了 tensorflow,但是当我尝试运行 import tensorflow as tf 时,我收到以下错误:Illegal instruction (core dumped)。我尝试使用 CPU 和 GPU 版本,使用 Virtualenv 和“本地”pip,但在每种情况下都会出现相同的错误。

我电脑的参数:
操作系统:LinuxMint 18.3
CPU:AMD 速龙双核 4450e
显卡:GTX 1050 Ti

我发现有些人在从源代码编译tensoflow时错误地配置了一些标志时遇到了这个错误。会不会是我的CPU太旧不支持了?从源代码编译是否有可能解决这个问题?

最佳答案

有一个issue在 tensorflow 上,这似乎表明 tf 版本 > 1.5.0 现在构建为使用 Intel AVX 指令。如果您的 CPU 不支持这些指令,您可能会遇到此处描述的问题。

修复包括 building tf from source或降级到 tensorflow(-gpu)==1.5.0

关于python - 导入 TensorFlow 时出错 : Illegal instruction (core dumped),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49079990/

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