python - [tensorflow]安装 tensorflow-gpu,导入错误为段错误(核心转储)

标签 python ubuntu tensorflow tensorflow-gpu

使用命令'pip install --ingore-installed -- upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow_gpu-1.3.0-cp36-cp36m-linux_x86_64.whl ' 安装 tensorflow-gpu用于 Python3.6 作为官方说明。

https://www.tensorflow.org/install/install_linux

如图所示,似乎安装成功

installed successfully

但是当使用“import tensorflow”在 python 中进行测试时,它会出现错误为 "Segmentation fault (core dumped)" .
Segmentation fault

使用类似安装tensorflow for cpu时,没有问题。

我的系统是 Ubuntu 16.04.2 LTS,我的 Anaconda env“tf-gpu”是新建的,没有其他 python 库可以打扰。

我没有发现与导入类似的问题和解决方案导致转储。如何处理?

最佳答案

这可能是因为您使用的是不兼容的 CUDA 和/或 cuDNN。
关注 this查看要使用的版本。

关于python - [tensorflow]安装 tensorflow-gpu,导入错误为段错误(核心转储),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46771194/

相关文章:

python - 如何在 Tensorflow Object Detection API v2 中同时训练和评估

python - 如何获取 tensorflow 中数组的一些值?

python - 如何恢复tensorflow inceptions检查点文件(ckpt)?

python - 在 Python 中尝试列表理解时出现语法错误

python - Python 3.6 中的 Tkinter : Grid sticky option not working

ubuntu - Ubuntu 上 swing 应用程序的系统菜单上不显示输入法菜单项

php - 我想将终端错误写入日志文件 - LUMEN

python - URL 和副作用 (Django)

python - input() 与 sys.stdin.read()

ubuntu - Ubuntu 上的 Swift : use of undeclared type 'NSFileHandle'