diff --git a/src/contributes/commandsBase.ts b/src/contributes/commandsBase.ts index efa82f9..8ee6554 100644 --- a/src/contributes/commandsBase.ts +++ b/src/contributes/commandsBase.ts @@ -14,7 +14,7 @@ export function checkDevChatDependency(showError: boolean = true): boolean { try { // Check if DevChat is installed - const expectVersion = 'DevChat 0.2.0'; + const expectVersion = 'DevChat 0.2.3'; const devchatVersion = runCommand(`"${devChat}" --version`).toString().trim(); if (devchatVersion < expectVersion) { logger.channel()?.info(`devchat version: ${devchatVersion}, but expect version: ${expectVersion}`); diff --git a/src/util/python_installer/package_install.ts b/src/util/python_installer/package_install.ts index a649a9a..98f67dd 100644 --- a/src/util/python_installer/package_install.ts +++ b/src/util/python_installer/package_install.ts @@ -15,7 +15,7 @@ export async function installPackage(pythonCommand: string, pkgName: string, oth let errorOut = ''; const cmd = pythonCommand; - let args = ['-m', 'pip', 'install', pkgName]; + let args = ['-m', 'pip', 'install', pkgName, '--force-reinstall']; if (otherSource) { args.push("-i"); args.push(otherSource);