[Python] I want to run a python file from go

Discussão em 'Python' iniciado por Stack, Abril 12, 2025.

  1. Stack

    Stack Membro Participativo

    I want to run a python(3) file with go.

    Ive Tried the following

    package main
    import "os/exec"
    func main() {
    things := exec.Command("python3", "myfile.py")
    things.Output()
    }


    And although my time i have spent scouring online forums and random blogs I can't seem to find an answer.

    Continue reading...

Compartilhe esta Página