Cross-Platform Support
Works seamlessly on Windows, macOS, and Linux with automatic platform detection and adaptation.
A comprehensive Go SDK for managing Python pip operations, virtual environments, and Python projects with CLI support
Install the SDK and start managing Python packages in your Go applications:
go get github.com/scagogogo/go-pip-sdk
package main
import (
"fmt"
"log"
"github.com/scagogogo/go-pip-sdk/pkg/pip"
)
func main() {
// Create a new pip manager
manager := pip.NewManager(nil)
// Install a package
pkg := &pip.PackageSpec{
Name: "requests",
Version: ">=2.25.0",
}
if err := manager.InstallPackage(pkg); err != nil {
log.Fatal(err)
}
fmt.Println("Package installed successfully!")
}
Released under the MIT License.