Ask Your Question
1

Tensorflow GPU Import error

asked 2019-11-27 23:25:32 -0600

SGN gravatar image

updated 2019-11-28 08:01:15 -0600

Hi I am getting the below error while importing tensorflow gpu in wing IDE: ImportError: libcublas.so.9.0: cannot open shared object file: No such file

I have given the location of cuda in the PYTHONPATH in wing. I am able to import the tensorflow gpu package when I run python shell directly from terminal

Please assist. Reagrds SGN

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2019-11-28 08:07:49 -0600

The items in PYTHONPATH aren't used to find libsuclas.so.9.0 since it's a regular dll and not a Python module. Instead, setting LD_LIBRARY_PATH (or DYLD_LIBRARY_PATH on macOS) may help. However, in general Python should really be able to import the necessary dlls without added configuration. So it should work if you've set Wing to use the right Python and it's not inheriting bad (DY)LD_LIBRARY_PATH values from the launch environment.

Is the output of print(sys.executable) (after 'import sys') the same outside of Wing where it works and inside of Wing in the Python Shell? If not, try setting the Python Executable in Project Properties to the value printed by print(sys.executable) outside of Wing.

If that doesn't work please let us know so we can look into it in more detail. In that case please also let us know if this is Anaconda.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-11-27 23:25:32 -0600

Seen: 62 times

Last updated: Nov 28