'ImportError: DLL load failed while importing QtCore: . Failed to execute script file.exe due to unhandled exception

I'm using python 3.8 via anaconda. I created a .py file and converted it to .exe file with pyinstaller. When I try to open the .exe file (Atualiza_Bases_dados_GUI.exe) I get the error: ImportError: DLL load failed while importing QtCore: . Failed to execute file.exe script due to unhandled exception!

enter image description here

Can anyone help me? Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source