Home > Enterprise >  python: Permission denied
python: Permission denied

Time:10-16

I am trying to run a python script in ubuntu using the command

python3 preprocess.py

But I am getting this error

/bin/sh: 1: python: Permission denied
/bin/sh: 1: python: Permission denied

The script I am trying to run is a wrapper function that runs two additional python scripts, the label_json_to_tif.py and generate_dataset.py.

This is the permissions of the files. enter image description here

Does anybody know how to resolve this?

CodePudding user response:

Just an idea, but have you tried running preprocess.py as sudo? e.g.

sudo python3 preprocess.py

If this works it would probably be because you are trying to start preprocesses and that may be the thing upsetting your computer.

  • Related