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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
SGN's avatar
11
SGN
asked 5 years ago
Wingware Support's avatar
4.3k
Wingware Support
updated 5 years ago

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Wingware Support's avatar
4.3k
Wingware Support
answered 5 years ago
link

Comments

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)