First time here? Check out the FAQ!

Revision history  [back]

The items in PYTHONPATH aren't used to find 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.