python - tensorflow works in ipython command line but not in notebook -
tensorflow works me in both python , ipython in command line, when loading tensorflow using import tensorflow, gives following errors:
importerror: /usr/lib64/libstdc++.so.6: version `glibcxx_3.4.19' not found (required /usr/local/packages/python/2.7.10-anaconda/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so) error importing tensorflow. unless using bazel, should not try import tensorflow source directory; please exit tensorflow source tree, , relaunch python interpreter there. here screenshot shows tensorflow works in command line
here screenshot shows doesn't work in notebook interface
so why work in command line not in notebook interface? i've compared environment variable using os.environ , looks same in command line , in notebook.
system information:
linux qb2 2.6.32-358.23.2.el6.x86_64 #1 smp sat sep 14 05:32:37 edt 2013 x86_64 x86_64 x86_64 gnu/linux tensorflow version:
0.11.0rc0 i don't think relevant, ipython kernel on remote machine qb037, , notebook interface on local machine. ipython kernel started using
[mwu3@qb037 ~]$ ipython notebook --no-browser --port=8889 then @ local machine, set port forwarding as
ssh -n -l localhost:8888:localhost:8889 qb037 and notebook interface started browser @ localhost:8888.
the reason breaks because ld_library_path not set corrected. reported problem system administrator, , offered solution works:
module load gcc comparing before , after loading gcc, ld_library_path change. after loading module, following paths have been prepended path.
/usr/local/compilers/gcc/4.9.0/lib/gcc/x86_64-unknown-linux-gnu/4.9.0 /usr/local/compilers/gcc/4.9.0/lib64 /usr/local/compilers/gcc/4.9.0/lib 

Comments
Post a Comment