I'm using pyinstaller. In my script there is:
import toml
config = toml.load('config.toml')
I compiled my script with:
pyinstaller main.py --onefile --clean --name myApp
but when I run the executable it gave me: ModuleNotFoundError: No module named 'toml'
So I tried this:
pyinstaller main.py --hidden-import toml --onefile --clean --name myApp
and now pyinstaller says: ERROR: Hidden import 'toml' not found
toml
package. are you sure you have that installed? trypip install toml
before running pyinstaller – Immixture