[英]"File was not found" error using Google Cloud and Jupyter Lab
My code:我的代码:
import seaborn as sns
from google.cloud.bigquery.client import Client
import os
os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = "Desktop/Estudos DS/SQL Study/sqlpractice.json"
client = Client()
But even with the path correct, the json key correct, I keep getting the following message但即使路径正确,json 密钥正确,我仍然收到以下消息
DefaultCredentialsError: File Desktop/Estudos DS/SQL Study/sqlpractice.json was not found.
Can someone please help?有人可以帮忙吗?
If you use GOOGLE_APPLICATION_CREDENTIALS
from local path right?如果您使用本地路径中的GOOGLE_APPLICATION_CREDENTIALS
对吗? If it right you need to move your credential into Colab.如果正确,您需要将您的凭证移至 Colab。 Colab its doesn't known your local path. Colab 它不知道您的本地路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.