The issue was that I used pyenv-win that incorrectly parsed the arguments in this case . I am not sure what the exact issue , but when working directly with the python exe it is solved.