First time here? Check out the FAQ!
1

How do I get Wing to recognize installed modules?

I have written a code that uses the installed libraries, "keyboard" and "pyautogui". When I try to import them I get the errors: builtins.ModuleNotFoundError: No module named 'keyboard' builtins.ModuleNotFoundError: No module named 'pyautogui' I have already tried manually setting the Python Path to the location mentioned in Command Prompt when I installed them. I have also restarted wing.

Netra14's avatar
11
Netra14
asked 2024-08-27 02:53:10 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

A common mistake is to be using a different python executable or virtual environment than the one that you expect. To see if this is the case, run a python shell both inside Wing and from the command line and compare the initial message with the version & build information and sys.path. If these differ, you're probably not using the same python. How to change the python that Wing uses is documented in https://wingware.com/doc/proj/project-p…

If you are using the python that you expect, please verify that they can be imported when run from the command line. They should be available if you installed with pip or the equivalent conda command; if you installed some other way, please tell us how you installed them.

Wingware Support's avatar
4.1k
Wingware Support
answered 2024-08-27 09:43:34 -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