I've been tinkering with coding for a few days now, and I've been doing a bit of coding here and there. Now that I'm starting to use python i got a lot of errors trying to install the necessary parts that I need.
The one I'm having a lot of trouble with right now is PyautoGui. I have installed it in: C:\msys64\mingw64\lib\python3.9\site-packages, but VsCode doesn't seem to recognize it.
I get this message: Import "pyautogui" could not be resolved from source
Been looking for answers the last few days online but I cant find anything yet that might help me.
I've already tried reinstalling everything, set paths and verify installations. Sadly nothing seems to work.
CodePudding user response:
Use Ctrl Shift P --> Python:Select Interpreter
to select the correct interpreter.
If there are multiple python versions on your machine, you need to use the one that has the pyautogui package installed.
You can check the current interpreter path with the following code.
import sys
print(sys.executable)