First time here? Check out the FAQ!
1

Tensorflow GPU Import error

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

SGN's avatar
11
SGN
asked 2019-11-27 23:25:32 -0500
Wingware Support's avatar
4.1k
Wingware Support
updated 2019-11-28 08:01:15 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

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.

Wingware Support's avatar
4.1k
Wingware Support
answered 2019-11-28 08:07:49 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer