PyInstaller packages together a Python application and its dependencies into a single executable.
Mac
pyinstaller --hidden-import={library_name} --path /path/to/python app.py
Windows
pyinstaller --onefile --hidden-import={library_name} --path /path/to/python app.py