I troied to build an .exe file with pyinstaller for my python code. There is a function in my code which works based on googleapiclient.discovery import build. It finally built the .exe file. However when I run the .exe file, it gives this error: googleapiclient.errors.UnknownApiNameOrVersion: name: vision version: v1
(In a part of my program, I use build function from googleapiclient to build a serivce: vservice = build('vision', 'v1', developerKey=APIKEY))
Above error is not shown when I directly run my program from terminal or from Jupyter notebook. What is the reason for this error that is generated only in the 'exe file from pyinstaller?
https://stackoverflow.com/questions/66848275/pyinstaller-and-problems-with-googleclinetapi March 29, 2021 at 11:03AM
没有评论:
发表评论