I got this error when I tried to run zip using subprocess on aws Cloud9.
cwd prints out ‘var/task’
print('os', os.getcwd()) subprocess.run(['ls', zippedAudioName]) subprocess.run(['zip', zippedAudioName]) FileNotFoundError: [Errno 2] No such file or directory: 'zip'
Do I have to change dir so that it can find zip? It works when I just run ‘ls’.