The 'google-api-python-client' distribution was not found and is required by the application with pyinstaller

后端 未结 6 899
长情又很酷
长情又很酷 2020-12-02 01:13

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

6条回答
  •  悲哀的现实
    2020-12-02 01:55

    I was able to find the solution here Link

    Update your version of google-api-python-client to the version specified in the link (worked for me)

    Also made a little .bat file:

    pyinstaller --hidden-import="pkg_resources.py2_warn" --hidden-import="googleapiclient" --hidden-import="apiclient"  main.py --onefile
    

    Also of note: I ran the bat file in a virtual environment.

提交回复
热议问题