Nathan
Nathan

Reputation: 123

ModuleNotFoundError: No module named 'pynput' even though it is clearly downloaded

Whenever I run the program, I get this error message.

ModuleNotFoundError: No module named 'pynput'

If I check the pip3 list I can see pynput.

Please let me know what I am doing wrong.

Thank you.

Upvotes: 0

Views: 121

Answers (2)

Nathan
Nathan

Reputation: 123

So it works with python file.py and not with python3 file.py

Upvotes: 0

Santi Santichaivekin
Santi Santichaivekin

Reputation: 915

It seems that your pip3 installed pynput to a python installation that you are not using. For example, your pip3 might have installed pynput to python3 while your python refers to python 2.7.

Upvotes: 1

Related Questions