'FileNotFoundError: [WinError 2] The system cannot find the file specified - fix through adjusting path settings?

I get this error: \AppData\Local\Programs\Python\Python310\lib\subprocess.py:1435: FileNotFoundError upon a subprocess.run() call. Now I have read several attempts in solving this through adding "shell=True" as an argument but I was wondering if there was any other way to fix this? Do I have my environment variable set up incorrectly?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source