'google-cloud-firestore' distribution doesn't get added to PyInstaller build

前端 未结 3 1889
既然无缘
既然无缘 2021-01-15 06:11

When I am trying to build an executable for my python script it gives me:

pkg_resources.DistributionNotFound: The \'google-cloud-firestore\' distribution wa         


        
3条回答
  •  被撕碎了的回忆
    2021-01-15 06:27

    If you are not able to locate hooks-google.cloud.py in the PyInstaller package, you can try to locate it in:

    C:\Users\\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\_pyinstaller_hooks_contrib\hooks\stdhooks
    

    or if you are using a virtual environment, you can look for _pyinstaller_hooks_contrib\hooks instead if you are using it to build the exe file.

    If the error still persists, you can take a look at the build log to locate where hook-google.cloud.py is built from.

    I hope this helps somebody out in the future as it works for me.

提交回复
热议问题