从Github上下载了一个程序代码运行,结果运行时报错如下:

在网上搜索该错误的解决方案,发现是因为需要添加的参数没有添加到默认路劲中,需要人工手动添加。操作步骤如下:
Step1
第一步,右键点击运行栏或者点击运行栏的向下的小箭头(如图,是main右侧的▾)

Step2
首先,,其次点击“参数(P)”一栏的斜箭头。

Step3
第三步是在打开的参数面板内添加必选参数。点击“确定”或者“应用”都可以。

经过上述三个操作步骤后,没想到的是该程序依旧有错误
报错信息如图显示:

看到参考链接说:
上述第一个报错的解决方法参考以下链接:
参考链接
[1] BUG: error: the following arguments are required: -d/--dataset, -m/--model, -l/--labelbi... - PythonTechWorld
[2] (理解和3种方法完全解决pycharm报错)main.py: error: the following arguments are required: -d/--dataset_音程的博客-CSDN博客_pycharm为什么老是运行main
[3] Pycharm下python使用argparse报错: error: the following arguments are required: -i/--image_瞲_大河弯弯的博客-CSDN博客
网友评论