Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows下执行Command失败 #10

Open
jasmineamber opened this issue Jan 23, 2024 · 0 comments
Open

Windows下执行Command失败 #10

jasmineamber opened this issue Jan 23, 2024 · 0 comments

Comments

@jasmineamber
Copy link

jasmineamber commented Jan 23, 2024

path := fmt.Sprintf("%s:%s", cmdDir, PATH)

Windows下PATH间应该用分号“;”,调用过一次RunCommand后,isPython3一直返回false, 报错“executable file not found in %PATH%”
out, err := Command(python, "--version").Output()

图片

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant