diff --git a/pkg/repos/runtimes/python/python.go b/pkg/repos/runtimes/python/python.go index 56ed5f0a..e229e304 100644 --- a/pkg/repos/runtimes/python/python.go +++ b/pkg/repos/runtimes/python/python.go @@ -134,6 +134,9 @@ func (r *Runtime) Setup(ctx context.Context, dataRoot, toolSource string, env [] } newEnv := runtimeEnv.AppendPath(env, venvBinPath) + if runtime.GOOS == "windows" && os.Getenv("PYTHONIOENCODING") == "" { + newEnv = append(newEnv, "PYTHONIOENCODING=utf-8") + } newEnv = append(newEnv, "VIRTUAL_ENV="+venvPath) if runtime.GOOS == "windows" {