Im learning Python at the moment and I am trying to work with pyautogui at the moment but I have encountered a very basic problem and while I found other questions like this, I did not find a solution.
My "Setup": I am on Windows 10 64 bit, I have installed python 3.11, I have the 22.3.1 pip version and the 0.9.53 version of pyautogui installed I am using Visual Studio Code.
Now I want to just simply move my mouse a bit, nothing special. But I am getting stuck at the very beginning, when I try to import pyautogui.
it looks like this:
The Problem Tab just mentions "pyautogui: Unknown word".
The thing is, if I test it in the terminal, it works without a problem it just seems like VSCode cant import pyautogui.
I have tried uninstalling and reinstalling Python, the package and creating new files. Nothing seems to really work.
This is not the visual studio code problem, It is because you have the Code Spell Checker
extension installed in your VScode
. This extension checks the spelling of the pyautogui
word and because the extension is not found in their dictionary it highlights the word.
Ways to solve this error.