Python 3.x 错误2没有这样的文件或目录:';credentials.json';
python 3.6 仍在学习python的过程中,使用来自公共源代码的以下代码,但遇到了以下问题: “[Errno 2]没有这样的文件或目录:'credentials.json'” 文件“C:\Users\BLINDEYE\Desktop\GeminiBots\main.py” 不确定im是否只是在错误的目录中,或者什么,但是requirements.json存储在 C:\Users\BLINDEYE\Desktop\GeminiBotsPython 3.x 错误2没有这样的文件或目录:';credentials.json';,python-3.x,Python 3.x,python 3.6 仍在学习python的过程中,使用来自公共源代码的以下代码,但遇到了以下问题: “[Errno 2]没有这样的文件或目录:'credentials.json'” 文件“C:\Users\BLINDEYE\Desktop\GeminiBots\main.py” 不确定im是否只是在错误的目录中,或者什么,但是requirements.json存储在 C:\Users\BLINDEYE\Desktop\GeminiBots 如有任何帮助,将不胜感激。C:\Users\BLIND
如有任何帮助,将不胜感激。C:\Users\BLINDEYE\Desktop\GeminiBots\credentials.json
这就是路径吗?你可以试试上面的绝对路径。我想littlecute的意思是试试这个:
with open("C:/Users/BLINDEYE/Desktop/GeminiBots/credentials.json", "r") as f:
欢迎来到StackOverflow!请在您的问题中添加更多信息,特别是您试图实现的目标,以便更多人能够理解您并提供帮助;)你是指requirements.json还是credentials.json?
with open("C:/Users/BLINDEYE/Desktop/GeminiBots/credentials.json", "r") as f: