使用命令'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
如图所示,似乎安装成功
但是当使用“
import tensorflow
”在 python 中进行测试时,它会出现错误为 "Segmentation fault (core dumped)"
.使用类似安装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/