pyinstaller --onefile is not including all necessary dependencies

Viewed 902

I am trying to compile a python script into an executable using pyinstaller --onefile. However, one necessary package, geemap, doesn't seem to be included, despite being an import in the script.

Is it possible to force-add custom packages?

Every time I run the .pyc file on a clean PC, it says:

ModuleNotFoundError: No Module named 'geemap'

1 Answers

You could try: pyinstaller --onefile --hidden-import=geemap

This should force-add the package.

Related