summaryrefslogtreecommitdiff
path: root/extension/src/activation/environmentSetup.ts
diff options
context:
space:
mode:
Diffstat (limited to 'extension/src/activation/environmentSetup.ts')
-rw-r--r--extension/src/activation/environmentSetup.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts
index 2d9afaec..f1aace77 100644
--- a/extension/src/activation/environmentSetup.ts
+++ b/extension/src/activation/environmentSetup.ts
@@ -71,7 +71,8 @@ async function getPythonPipCommands() {
}
const version = stdout.split(" ")[1];
- if (version < "3.7") {
+ const [major, minor] = version.split(".");
+ if (parseInt(major) !== 3 || parseInt(minor) < 7) {
vscode.window.showErrorMessage(
"Continue requires Python3 version 3.7 or greater. Please update your Python3 installation, reload VS Code, and try again."
);