Getting an import error in python after using pip install and setting path

Getting an import error in python after using pip install and setting path in vscode

 File "c:UsersauxycDesktopkeylogkeylogger.py", line 1, in <module>
    import keyboard
ModuleNotFoundError: No module named 'keyboard'

I have set the path in the settings, and python is in path

EDIT: I have tried to install it via the vscode terminal

Answer

Once check if Python 3.7 selected as your interpreter in Visual Studio Code. Try to change it to Python 3.8, then execute once. If still errors exists please let me know

Leave a Reply

Your email address will not be published. Required fields are marked *