Skip to content
← Back to Community
How to import pynput to repl?
Profile icon
BXU33

I had manually installed the pynput package:

pynput

this is the error message i got when i import pynput:

error

Voters
Profile icon
BXU33
Comments
hotnewtop
Profile icon
AudenMonteith

import os
os.system("pip install pynput")
this is how I install it. Please tell me if it works.

Profile icon
MocaCDeveloper

Well, Repl is a virtual machine.
That is probably why it isn't working correctly. Either that or you aren't setting up the server required to run the module right in the .py file where you're setting up the module ideals.