Search code examples
pythonpycharmkeyboard

Can't import module keyboard


I tried to install the keyboard module, but this module was not shown to me, but before it's been work.

I tried to install it through "pip install keyboard", but it shows, i have this module:

PS C:\Users\Lenovo\PycharmProjects\pythonProject1> pip install keyboard Requirement already satisfied: keyboard in c:\users\lenovo\appdata\local\programs\python\python311\lib\site-packages (0.13.5) PS C:\Users\Lenovo\PycharmProjects\pythonProject1>


Solution

  • Requirement already satisfied basically means that the package you're trying to download is already installed in your computer and all you have to do now is import that package by using the import statement. And, if you're curious, global packages are most of the time installed under /usr/local/bin/ in a Unix-based system, or \Program Files\ for Windows.