From eac4d980a670b266fe2637cb91b0e8f9c4d85710 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 30 Jun 2023 02:40:34 -0700 Subject: fixed websockets issue --- extension/src/activation/environmentSetup.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'extension/src/activation/environmentSetup.ts') 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." ); -- cgit v1.2.3-70-g09d2