Admin Priviledges on Windows

Windows builds should already be running with admin privileges. I’m not sure of the exact error you’re facing without a build log, but I’d imagine Windows doesn’t have a “sudo” command.

That failed due to:

/c/Users/travis/.travis/functions: line 104: python3: command not found

Assuming Chocolatey updated the system PATH (in the Registry) to include the directory containing the python3 program, you’ll need to reload that PATH using RefreshEnv.cmd like:

cmd //c "RefreshEnv.cmd & pip3 install --user --upgrade pip || pip3 install --upgrade pip"

Note that you’ll need this manoeuvre via cmd.exe for every successive command, since RefreshEnv.cmd is a batch script that can only load the PATH into its process. The proposed RefreshEnv for bash will make this a one-time . (source) operation.