I have a MinGW folder on Windows, and I have not set any paths in the 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 is caused by the fact that I did not add this path to the environment variables. How can I solve this problem without adding this path to environment variables, because I plan to run this command with a Python script.
source
share