Summary of solutions to open flash back problem after Python packaging

Recently, I wrote a python project, but I found no response after packing it today. I checked some information and said that adding a input input statement at the end of the program can stay here to see the cause of the error.

After I add the input statement, I execute the following command to package

pyinstaller -F --hidden-import babel.numbers start_trade.py

Pay attention not to add the - W parameter, so that the terminal window cannot be displayed and the saved information cannot be seen.
--hidden-import babel.numbers represents the hidden module of packaging

The error message displayed during operation is

No module named 'talib.stream' name 'UI' is not defined

Now the program can’t find the package.

resolvent

Introduce into the files using the module talib.stream

The same is true for the missing module. The missing module is introduced in the file that references the module

However, it should be noted that what it prompts should be introduced according to the name it prompts, such as

import talib.stream

Read More: