1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,我想在AI DevCloud的计算节点中运行TensorFlow时出错。
[u19741 @ c009-n031~] $ python Python 3.6.3 |英特尔公司| (默认,2018年2月12日,06:37:09) Linux上的[GCC 4.8.2 20140120(Red Hat 4.8.2-15)] 输入“帮助”,“版权”,“信用”或“许可”以获取更多信息。 英特尔(R)Python分发由英特尔公司提供给您。 请查看:https://software.intel.com/en-us/python-distribution >>>将tensorflow导入为tf 回溯(最近的呼叫最后): 文件“/home/u19741/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py”,第58行,in 来自tensorflow.python.pywrap_tensorflow_internal import * 文件“/home/u19741/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py”,第28行,in _pywrap_tensorflow_internal = swig_import_helper() 在swig_import_helper中输入文件“/home/u19741/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py”,第24行 _mod = imp.load_module('_ pywrap_tensorflow_internal',fp,pathname,description) 在load_module中输入文件“/glob/intel-python/python3/lib/python3.6/imp.py”,第243行 return load_dynamic(name,filename,file) 在load_dynamic中输入文件“/glob/intel-python/python3/lib/python3.6/imp.py”,第343行 return _load(spec) ImportError:/lib64/libstdc++.so.6:找不到版本“CXXABI_1.3.8”(/home/u19741/.local/lib/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so所需) 在处理上述异常期间,发生了另一个异常: 回溯(最近的呼叫最后): 文件“”,第1行,in 文件“/home/u19741/.local/lib/python3.6/site-packages/tensorflow/__init__.py”,第24行,在 来自tensorflow.python import * #pylint:disable = redefined-builtin 文件“/home/u19741/.local/lib/python3.6/site-packages/tensorflow/python/__init__.py”,第49行,in 来自tensorflow.python导入pywrap_tensorflow 文件“/home/u19741/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py”,第74行, 引发ImportError(msg) ImportError:Traceback(最近一次调用最后一次): 文件“/home/u19741/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py”,第58行,in 来自tensorflow.python.pywrap_tensorflow_internal import * 文件“/home/u19741/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py”,第28行,in _pywrap_tensorflow_internal = swig_import_helper() 在swig_import_helper中输入文件“/home/u19741/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py”,第24行 _mod = imp.load_module('_ pywrap_tensorflow_internal',fp,pathname,description) 在load_module中输入文件“/glob/intel-python/python3/lib/python3.6/imp.py”,第243行 return load_dynamic(name,filename,file) 在load_dynamic中输入文件“/glob/intel-python/python3/lib/python3.6/imp.py”,第343行 return _load(spec) ImportError:/lib64/libstdc++.so.6:找不到版本`CXXABI_1.3.8'(/home/u19741/.local/lib/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so所需) 无法加载本机TensorFlow运行时。 请参阅https://www.tensorflow.org/insta ... stallation_problems 出于一些常见原因和解决方案。 包括整个堆栈跟踪 在寻求帮助时,在此错误消息之上。 以上来自于谷歌翻译 以下为原文 Hello, I am getting an error when I want to run TensorFlow in the compute node of AI DevCloud. [u19741@c009-n031 ~]$ pythonPython 3.6.3 |Intel Corporation| (default, Feb 12 2018, 06:37:09)[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linuxType "help", "copyright", "credits" or "license" for more information.Intel(R) Distribution for Python is brought to you by Intel Corporation.Please check out: https://software.intel.com/en-us/python-distribution>>> import tensorflow as tfTraceback (most recent call last): File "/home/u19741/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in |
|
相关推荐
4个回答
|
|
嗨Toqi,感谢您与我们联系。
:)这里的问题是gcc版本。 请使用gcc 6.4.0来安装tensorflow.Below是在conda环境中安装Intel优化张量流的步骤.conda create -n tf_1.10 -c intel python = 3.6source activate tf_1.10确保以下行在那里 bash_profile并将其发布。 export CC = / glob / development-tools / versions / gcc-6.4.0 / bin / gcc export LD_LIBRARY_PATH = / glob / development-tools / versions / gcc-6.4.0 / lib64 /:$ LD_LIBRARY_PATH export PATH = / glob / 开发工具/版本/ gcc-6.4.0 / bin /:$ PATH如果路径设置成功,你应该可以在输入gcc时看到gcc版本6.4.0 --versionIf你得到错误ImportError:/ lib64 / libm.so.6:找不到版本`GLIBC_2.23',请按照以下步骤操作:mkdir~ / lib cd~ / lib ln -s /glob/supplementary-software/versions/glibc/glibc_2_28/lib/libm.so .6然后为它导出LD_LIBRARY_PATH:export LD_LIBRARY_PATH =〜/ lib:$ LD_LIBRARY_PATHThen,使用以下命令安装tensorflow 1.10:pip install https://storage.googleapis.com/intel-optimized-tensorflow/tensorflow-1.10.0-cp36- cp36m-linux_x86_64.whl请试试这个,让我们知道它是否有帮助:)问候,Deepthi Raj 以上来自于谷歌翻译 以下为原文 Hi Toqi, Thanks for reaching out to us. :) Here the problem is with gcc version. Please use gcc 6.4.0 for the installation of tensorflow. Below are the steps to install Intel optimized tensorflow in conda environment. conda create -n tf_1.10 -c intel python=3.6 source activate tf_1.10 Make sure the following lines are there in the bash_profile and source it. export CC=/glob/development-tools/versions/gcc-6.4.0/bin/gcc export LD_LIBRARY_PATH=/glob/development-tools/versions/gcc-6.4.0/lib64/:$LD_LIBRARY_PATH export PATH=/glob/development-tools/versions/gcc-6.4.0/bin/:$PATH If the path setting was successful, you should be able to see the gcc version 6.4.0 on typing gcc --version If you get the error ImportError: /lib64/libm.so.6: version `GLIBC_2.23' not found, please follow the steps below: mkdir ~/lib cd ~/lib ln -s /glob/supplementary-software/versions/glibc/glibc_2_28/lib/libm.so.6 Then export the LD_LIBRARY_PATH for it: export LD_LIBRARY_PATH=~/lib:$LD_LIBRARY_PATH Then, install tensorflow 1.10 using: pip install https://storage.googleapis.com/intel-optimized-tensorflow/tensorflow-1.10.0-cp36-cp36m-linux_x86_64.whl Please try this out and let us know if it helps :) Regards, Deepthi Raj |
|
|
|
jerry1978 发表于 2018-10-19 11:39 嗨,Deepthi, 感谢您的帮助。 你的指导奏效了。 请检查我的bash_profile是否具有正确的设置? 另外,我可以在新创建的conda环境中安装keras吗? #.bash_profile #获取别名和功能 if [-f~ / .bashrc]; 然后 。 在〜/ .bashrc 科幻 #用户特定的环境和启动程序 export PATH = $ PATH:$ HOME / .local / bin:$ HOME / bin 来源/glob/development-tools/parallel-studio/bin/compilervars.sh intel64 export INTEL_LICENSE_FILE = / usr / local / licenseserver / psxe.lic export PATH = / glob / intel-python / python3 / bin /:/ glob / intel-python / python2 / bin /:$ {PATH} export LD_LIBRARY_PATH = / glob / development-tools / mklml / lib /:$ {LD_LIBRARY_PATH} export CC = / glob / development-tools / versions / gcc-6.4.0 / bin / gcc export LD_LIBRARY_PATH = / glob / development-tools / versions / gcc-6.4.0 / lib64 /:$ LD_LIBRARY_PATH export PATH = / glob / development-tools / versions / gcc-6.4.0 / bin /:$ PATH export LD_LIBRARY_PATH =〜/ lib:$ LD_LIBRARY_PATH 如果[! -d $ {HOME} / tmp]; 然后 mkdir $ {HOME} / tmp 科幻 export TMPDIR = $ {HOME} / tmp 以上来自于谷歌翻译 以下为原文 Hi Deepthi, Thank you for the help. Your instruction worked. Would you please check if my bash_profile has the correct settings? Another thing, can I install keras on the newly created conda environment? # .bash_profile# Get the aliases and functionsif [ -f ~/.bashrc ]; then. ~/.bashrcfi# User specific environment and startup programsexport PATH=$PATH:$HOME/.local/bin:$HOME/binsource /glob/development-tools/parallel-studio/bin/compilervars.sh intel64export INTEL_LICENSE_FILE=/usr/local/licenseserver/psxe.licexport PATH=/glob/intel-python/python3/bin/:/glob/intel-python/python2/bin/:${PATH}export LD_LIBRARY_PATH=/glob/development-tools/mklml/lib/:${LD_LIBRARY_PATH}export CC=/glob/development-tools/versions/gcc-6.4.0/bin/gccexport LD_LIBRARY_PATH=/glob/development-tools/versions/gcc-6.4.0/lib64/:$LD_LIBRARY_PATHexport PATH=/glob/development-tools/versions/gcc-6.4.0/bin/:$PATHexport LD_LIBRARY_PATH=~/lib:$LD_LIBRARY_PATHif [ ! -d ${HOME}/tmp ]; then mkdir ${HOME}/tmpfiexport TMPDIR=${HOME}/tmp |
|
|
|
嗨Toqi,感谢您的确认:)bash_profile看起来很好。 你在那里提供了必要的命令。我们正在关闭这个案例。 如果你正面临一些其他问题,请提出新的帖子。注意,Deepthi Raj。 以上来自于谷歌翻译 以下为原文 Hi Toqi, Thanks for the confirmation :) bash_profile looks fine. You have provided the necessary commands there. We are closing this case. Please raise a new thread in case you are facing some other issues. Regards, Deepthi Raj. |
|
|
|
jerry1978 发表于 2018-10-19 11:59 嗨,Deepthi, 别客气。 以上来自于谷歌翻译 以下为原文 Hi Deepthi, You are welcome. |
|
|
|
只有小组成员才能发言,加入小组>>
516浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 16:11 , Processed in 0.792182 second(s), Total 82, Slave 66 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号