[Python] PyInstaller --hidden-import wildcard?

Discussão em 'Python' iniciado por Stack, Agosto 31, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to make executable from Scrapy project. I've noticed that I have to say PyInstaller what scrapy modules it has to load. The problem is that there is a lot of these modules.

    pyinstaller --onefile main.py --hidden-import scrapy.spiderloader --hidden-import scrapy.statscollectors --hidden-import scrapy.....


    Is it possible to set PyInstaller to preimport all modules? Something like --hidden-import scrapy.* which doesn't work.

    Continue reading...

Compartilhe esta Página