I am currently trying to build an app with pyinstaller. I have gotten the error The \'google-api-python-client\' distribution was not found and is required by the appl
My case is an Python-Flask windows app bundled with Pyinstaller --onefile option, using a .spec file.
I've copied the folder google_api_python_client-1.9.3.dist-info from the original location (maybe the windows site-packages folder) to the project folder.
Adding the following line to Pyinstaller spec file datas section (app.spec) was the solution for the problem.
a = Analysis(.......
datas=[.....
('project\\google_api_python_client-1.9.3.dist-info','google_api_python_client-1.9.3.dist-info'),
.......],