I am using pynput to record keystrokes via Listener on OS X Mojave. I am using Pycharm as my IDE for running the code.
I was not able to get it to work using the same ex
This is probably a bit late, but the answer is to go into:
Security & Privacy
Privacy
tab +
Hold down CMD
+ SHIFT
+ .
(so that you can see hidden
files/folders) /usr/local/bin
or wherever you have Python installedokay
.That should do it.
Note
If you try to run your app via the terminal, you will need to add the terminal.app to the list of allowed apps, as done above for Python.