ソースを参照

Merge pull request #162 from zalcit/fix_some_time_wrong_python_version

fix: some time uv venv wrong python version
Yeuoly 6 ヶ月 前
コミット
085bba3f90
共有2 個のファイルを変更した3 個の追加2 個の削除を含む
  1. 2 1
      .gitignore
  2. 1 1
      internal/core/plugin_manager/local_runtime/environment_python.go

+ 2 - 1
.gitignore

@@ -12,4 +12,5 @@ media-cache
 subprocesses
 working
 cwd/
-bin/
+bin/
+.venv/

+ 1 - 1
internal/core/plugin_manager/local_runtime/environment_python.go

@@ -61,7 +61,7 @@ func (p *LocalPluginRuntime) InitPythonEnvironment() error {
 
 	uvPath := strings.TrimSpace(string(output))
 
-	cmd = exec.Command(uvPath, "venv", ".venv")
+	cmd = exec.Command(uvPath, "venv", ".venv", "--python", "3.12")
 	cmd.Dir = p.State.WorkingPath
 	b := bytes.NewBuffer(nil)
 	cmd.Stdout = b