Python Forum
import keyboard module doesn't get found - working on laptop but no on raspberry pi.. - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: import keyboard module doesn't get found - working on laptop but no on raspberry pi.. (/thread-8996.html)



import keyboard module doesn't get found - working on laptop but no on raspberry pi.. - HANSJORG2 - Mar-16-2018

I am using:
https://github.com/boppreh/keyboard/

I am unable to get it working on a raspberry pi, but it works perfectly on my linux mint laptop...

Any ideas?


RE: import keyboard module doesn't get found - working on laptop but no on raspberry pi.. - sparkz_alot - Mar-16-2018

What is the error you get (in it's entirety, between the error tags). Even the RaspberryPi comes with 2 versions of Python pre-installed, v2 and v3. Each has it's own set of commands. For instance, to install module 'mody' in v2, would be pip install mody, while for v3 it would be pip3 install mody. The same holds true for invoking the interpreter, typing python in the command terminal will bring up Python v2, while typing python3 brings up Python v3.