tensorflow安装出现Failed to load the native TensorFlow runtime问题
来源:互联网 发布:外汇行情软件哪个好 编辑:程序博客网 时间:2024/06/06 17:05
原因:组件版本太低
第一步:升级GCC
下载了最新的6.2.0版本
wget http://gcc.parentingamerica.com/releases/gcc-6.2.0/gcc-6.2.0.tar.bz2
gcc安装文件下载完成后,执行以下命令解压文件:
tar -xf gcc-6.2.0.tar.bz2
解压完成后,执行以下命令进入工作目录:
cd gcc-6.2.0
执行download_prerequisites脚本,下载gcc依赖文件和库:
./contrib/download_prerequisites#download_prerequisites脚本,会下载安装gcc所需的mpfr、gmp和mpc文件。
建立一个输出目录,编译时所有生成的中间文件都放到该目录下:
mkdir build
工作目录切换至输出目录,并在其中执行配置和安装:
cd build
执行configure配置安装文件:
../configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
配置完成后,执行以下命令,编译gcc:
make -j 6
编译完成后,安装gcc:
make install
安装完成后还需要替换系统默认的gcc,执行以下命令,查找6.2版本的安装文件:
第二步:升级GLIBCXX
注意,进入GCC编译输出目录,.libs是隐藏的:build/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
用下面的命令查看:
strings libstdc++.so.6.0.22|grep GLIBCXX
一般来讲,里面就有满足需要的GLIBCXX版本了。
然后,把该文件拷贝到了/usr/lib64下.
然后将libstdc++.so.6指向libstdc++.so.6.0.22:
这一步一定要在ROOT权限下执行。
rm -r libstdc++.so.6rm: remove symbolic link `libstdc++.so.6'? yln -s libstdc++.so.6.0.18 libstdc++.so.6
这就Ok了。
最简单的就是换个新版系统
阅读全文
2 0
- tensorflow安装出现Failed to load the native TensorFlow runtime问题
- tensorflowGPU版出现"Failed to load the native TensorFlow"问题
- win10配置TensorFlow GPU出现Failed to load the native TensorFlow runtime."
- Failed to load the native TensorFlow runtime. See https://www.tensorflow.org/install/install_source
- Tensorflow导入报"Failed to load the native TensorFlow runtime."解决方案
- ImportError: No module named '_pywrap_tensorflow' Failed to load the native TensorFlow runtime
- 安装VMWare 8出现问题总结——Runtime Error/Failed to load module
- mac安装 tensorflow以及出现numpy.core.multiarray failed to import问题
- Mac下安装tensorflow运行时会出现ImportError: numpy.core.multiarray failed to import的解决方案
- failed to load OpenCL runtime
- 安装tensorflow+1050,运行import tensorflow出现问题
- tensorflow安装问题:No module named pywrap_tensorflow_internal&failed call to cuInit:CUDA_ERROR_NO_DEVICE
- 安装eclipse出现Failed to load the JNIshared library---我的解决
- 解决-打开eclipse时出现“Failed to load the JNI shared library”的问题
- eclipse出现Failed to load the JNI shared library
- import keras中Using TensorFlow backend出现ImportError: DLL load failed: 找不到指定的模块。
- 安装svn出现的小问题 Failed to load JavaHL Library
- tensorflow出现一大串 The TensorFlow library wasn't compiled to use SSE instructions, but these are ...
- 森林转化为树
- LeetCode557 Reverse Words in a String III
- 225. Implement Stack using Queues
- c++11特性之initializer_list
- 如何判断一家软件公司是否靠谱
- tensorflow安装出现Failed to load the native TensorFlow runtime问题
- proxifier配合ss,实现全局代理
- Java static关键字,final关键字
- SeetaFace C++环境搭建(详细图文)
- leveldb(七):Memtable
- Linux下 PostgreSQL 编译安装
- BZOJ 1180 [CROATIAN2009]OTOCI Link Cut Trees
- 51nod 1116 K进制下的大数
- 变量是什么