1

我想在我的pycharm中運行google雲語音python示例。Pycharm:爲Google服務帳戶密鑰(json憑證)設置環境變量

但遇到的

ApplicationDefaultCredentialsError: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the environment variable GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.

我試着this solution但它不工作。誰能幫我?謝謝!

PS:谷歌樣本可以在終端運行良好。

+0

發佈你的代碼,最好是https://stackoverflow.com/help/mcve和你得到的錯誤。 – Robert

回答

1

嗯,我找到了自己的解決方案,基於該版本2016年2月3日

運行 - >設置 - 編輯>環境

變量 - >添加中的「...」窗口

UR證書路徑