0

I am trying to make an exe file out of my python script but whenever I try to run my exe file, it gives a

Traceback error that pyperclip module not found.

I even tried to hidden import it using --hidden-import but still the same issue. Can you please help me out? Attached is the screenshot of the error whenever I run the exe file. Screenshot of the Error

Amir Charkhi
  • 768
  • 7
  • 23
Hassan Shahzad
  • 455
  • 6
  • 14
  • 1
    What are you using to create the exe file? – user107511 Aug 10 '21 at 08:26
  • 1
    I used both pyinstaller and auto-py-to-exe but the issue remains – Hassan Shahzad Aug 10 '21 at 09:53
  • Have you installed `pynput`? Maybe you forgot to install it. Also, pyinstaller will output a log message like `analyzing hidden import 'pyperclip'` when building it. Also, `pyperclip` works in my environment. – gfdsweds Aug 10 '21 at 11:11
  • @HassanShahzad Your issue is similar to [this question](https://stackoverflow.com/a/68993691/16747588) try the solution given there. – Deep Aug 31 '21 at 09:04

0 Answers0