Merge pull request #156 from continuedev/download-python

require python3 already downloaded
This commit is contained in:
Nate Sesti 2023-06-27 14:58:22 -07:00 • committed by GitHub
commit acc8ab1a3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,8 +63,10 @@ async function getPythonPipCommands() {
pythonCmd = "python";
} else {
// Python doesn't exist at all
console.log("Python3 not found, downloading...");
await downloadPython3();
vscode.window.showErrorMessage(
"Continue requires Python3. Please install from https://www.python.org/downloads, reload VS Code, and try again."
);
throw new Error("Python3 is not installed.");
}
}
let pipCmd = pythonCmd.endsWith("3") ? "pip3" : "pip";