0

In the PyInstaller documentation the following is stated:

The name of a hook file is hook-full.import.name.py, where full.import.name is the fully-qualified name of an imported script or module. You can browse through the existing hooks in the hooks folder of the PyInstaller distribution folder and see the names of the packages for which hooks have been written.

However in my current attempt to generate an executable for my script, after running I see that there is no hooks folder in the dist folder generated.

Am I looking in the wrong folder? Where are my hook files being dumped?

user32882
  • 5,094
  • 5
  • 43
  • 82

1 Answers1

0

The docs state

You can browse through the existing hooks in the hooks folder of the PyInstaller distribution folder

and not

You can browse through the existing hooks in the hooks folder of the distribution folder

Which means that you cannot expect to find the hooks in the dist folder generated by running

pyinstaller test.py

You must find them, for the anaconda case, in:

Anaconda\Lib\site-packages\PyInstaller\hooks

For other environments you can also check in the site-packages directory

user32882
  • 5,094
  • 5
  • 43
  • 82