Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
import pynput
#1
Traceback (most recent call last):
File "C:\python_examples\pynput_2.py", line 1, in <module>
from pynput.mouse import Listener
File "C:\python_examples\pynput.py", line 1, in <module>
from pynput.mouse import Listener
ModuleNotFoundError: No module named 'pynput.mouse'; 'pynput' is not a package

Hallo!

I'm a beginner in python i can't import the pynput library. I get all the time the ModuleNotFound. I have been used pip(pip install pynput), but itsn't work.
Can you help me, please?
Thanks for your help!
Reply
#2
Rename your python_examples\pynput.py it shadowing the real import of pynput.
Reply
#3
Thanks!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with "from pynput" LFreitas 1 124 Mar-24-2024, 02:23 AM
Last Post: deanhystad
  Pynput - One content on screen, another in the variable Valjean 4 878 Sep-18-2023, 06:00 PM
Last Post: Valjean
  Pynput Library not Working with Windows jacknewport 1 2,239 Mar-26-2022, 07:09 PM
Last Post: snippsat
  Solve Pynput Problem when changing language? ppel123 0 2,243 Feb-19-2020, 03:38 PM
Last Post: ppel123
  Pynput doesn't recognize shift button and special characters VirtualDreamer 0 2,982 Jul-17-2019, 11:55 AM
Last Post: VirtualDreamer
  Pynput - no capital letters jmair 2 4,508 Feb-12-2019, 09:53 PM
Last Post: jmair
  Problem with updating file to attach/pynput jameseroni 7 4,402 Nov-02-2018, 03:47 AM
Last Post: jameseroni
  Pynput while not using text field Superbit 2 4,168 Mar-07-2018, 04:35 AM
Last Post: Superbit

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020