pyinstaller single exe of program which uses google api client lib <p>I have a python program which I've successfully packaged up as a single exe using pyinstaller in the past. Recently I added new features which make use of the google api python client ( <a href="https://developers.google.com/api-client-library/python/" rel="nofollow">https://developers.google.com/api-client-library/python/</a> ). I've attempted to make a new single exe package of the new version and it fails to run.</p> <p>I enable debugging and the console and initially the issue was that it hadn't picked up the oauth lib. I fixed that by adding the following to my spec file:</p> <pre><code>hiddenimports=['googleapiclient', 'apiclient'] </code></pre> <p>When I build I can see this:</p> <pre><code>53092 INFO: Hidden import 'googleapiclient' has been found otherwise 53093 INFO: Hidden import 'apiclient' has been found otherwise </code></pre> <p>However, now when I run the rebuilt exe I get the following error before it exits:</p> <pre><code>pkg_resources.DistributionNotFound: google-api-python-client </code></pre> <p>I can't see any reference to that and I'm not sure how to force it to be packaged up with the exe.</p> <p>I figure I can't be the only person to have ever wanted to package up a python program that makes use of the google api, but I failed to find any help during a lot of time with my friend google...</p> <p>Any tips?</p>