PyInstaller file fails to execute script - DistributionNotFound

后端 未结 5 1550
庸人自扰
庸人自扰 2020-12-10 18:22

I\'m trying to convert my python file to an executable using PyInstaller. The program uses the Google Cloud Translate API to translate given text between languages. When run

5条回答
  •  孤街浪徒
    2020-12-10 19:11

    My personal solution:

    1. Change all calls to get_distribution with it returned values (0.21.0 in my case)
    2. Remove from pkg_resources import get_distribution from import

    for all files in the package.

提交回复
热议问题