Pycharm:run.py: error: the following arguments are required: xxx

created at 12-13-2021 views: 299

Error

run.py: error: the following arguments are required: input_dir

solution

It indicates that the parameter input_dir is required.

Either you need to enter it yourself at runtime, such as:

python run.py data/

Enter the parameters manually.

Or you can set it in Edit Configurations, and you can run it directly after setting, which is also convenient for debugging.

Edit Configurations

Enter the corresponding parameters into the red box below.

pycharm config

created at:12-13-2021
edited at: 12-13-2021: