在 Pycharm 终端中设置后,我仍然得到:请设置 GOOGLE_APPLICATION_CREDENTIALS

After already being set in Pycharm terminal, I still get: Please set GOOGLE_APPLICATION_CREDENTIALS

我正在尝试创建一个 bq 客户端 python。

我已经创建了 GCP json 密钥并将其导出到 GOOGLE_APPLICATION_CREDENTIALS

我已经尝试 运行 PyCharm IDE 中的以下内容:

export GOOGLE_APPLICATION_CREDENTIALS="/home/.....7e7a385.json" echo $GOOGLE_APPLICATION_CREDENTIALS /home/...7e7a385.json GOOGLE_APPLICATION_CREDENTIALS="/home/....7e7a385.json"

(跟随这个post )

之后我仍然得到这个错误:

google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials and re-run the application. For more information, please see https://cloud.google.com/docs/authentication/getting-started

不得不在IDEA下设置UI:Edit configuration