简体   繁体   中英

Tensorflow - getting Segmentation fault (core dumped) error

I have installed tensorflow 0.10 in Anaconda2 -> Python 2.7.

OS: RHEL6.8

I was getting below error when I try to run

python -c "import tensorflow"

ImportError: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ~/anaconda2/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so)

I have glibc_2.12 in the host. I installed glibc_2.14 in another dir.

Now I am running the command as below:

export LD_LIBRARY_PATH=/opt/glibc-2.14/lib

python -c "import tensorflow"

Now I am getting a different error:

Segmentation fault (core dumped)

export LD_LIBRARY_PATH=/opt/glibc-2.14/lib

该答案说明了为什么您永远都不要这样做,而应该做什么。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM