I have a MinGW folder in Windows and I didn't set any paths in environment variables. When I run the following command:
D:\toolchains\MinGW\bin>gcc.exe hw.c -o hw
I got this error:
gcc.exe: error: CreateProcess: No such file or directory
As far as I understand, this problem caused by that I didn't add this path to environment variables. How can I solve this problem without adding this path to environment variables, because I'm planning to run this command from Python script.