As part of a process I need to run a command involving gdal, the code is attached above. Code: pcall= "gdal_grid --config 'NUM_THREADS=ALL_CPUS GDAL_CACHEMAX=2000'\ -overwrite -a invdist:power=2.0:smoothing=2.0:radius1=360.0:radius2=360.0\ -ot UInt16 -of GTiff -outsize %d %d -l %s -zfield 'Z' %s %s "%(npx, npy,\ lname,ptshapefile,interprasterfile) subprocess.call(pcall, shell= True) What changes need to be done so that the same works for Windows