由于缺少参数,Python脚本未运行

2024-06-28 15:57:57 发布

您现在位置:Python中文网/ 问答频道 /正文

Python初学者。我正在尝试运行以下脚本(下载\u meta\u review_转储.py). 为了便于查看,我添加了一个到github的链接,因为在这里复制它时遇到了问题-https://github.com/trustyou/example-meta-review-dump

我正在Windows 10上使用Python 2.7.13,尝试运行脚本时收到以下错误:

Demonstration of how to download a complete meta-review API dump. [-h] --dest_folder DEST_FOLDER Demonstration of how to download a complete meta-review API dump. : error: argument --dest_folder is required

我期待的是出现一个提示,要求我输入一个AWS访问密钥。你知道吗

已安装awscli和boto。你知道吗

另外,我在保存脚本的同一个文件夹中创建了一个空文件夹(名为dest\u folder),但仍然收到上述错误。你知道吗

有人能指出我做错了什么的正确方向吗?你知道吗


Tags: oftogithub脚本apidownload错误folder
1条回答
网友
1楼 · 发布于 2024-06-28 15:57:57

您正在尝试下载而不指向目标。在脚本的文件夹中创建目标文件夹(我们称之为container),并将其附加到脚本调用~script name here~ dest_folder container~script name here~ dest_folder "container"的末尾。你知道吗

相关问题 更多 >