2016-10-04 101 views
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证书路径