From 8e07a6f239cd23a7faeef58ae6225dc1b4c70aa7 Mon Sep 17 00:00:00 2001 From: Lucy Zhang Date: Thu, 4 Mar 2021 15:26:46 -0800 Subject: [PATCH] pass in pythonexecutable when getting packages (#14550) --- extensions/notebook/src/jupyter/jupyterServerInstallation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/notebook/src/jupyter/jupyterServerInstallation.ts b/extensions/notebook/src/jupyter/jupyterServerInstallation.ts index 85a867645a..47202a1bf1 100644 --- a/extensions/notebook/src/jupyter/jupyterServerInstallation.ts +++ b/extensions/notebook/src/jupyter/jupyterServerInstallation.ts @@ -167,7 +167,7 @@ export class JupyterServerInstallation implements IJupyterServerInstallation { await this.installPythonPackage(backgroundOperation, this._usingExistingPython, this._pythonInstallationPath, this.outputChannel); // reinstall pip to make sure !pip command works if (!this._usingExistingPython) { - let packages: PythonPkgDetails[] = await this.getInstalledPipPackages(); + let packages: PythonPkgDetails[] = await this.getInstalledPipPackages(this._pythonExecutable); let pip: PythonPkgDetails = packages.find(x => x.name === 'pip'); let cmd = `"${this._pythonExecutable}" -m pip install --force-reinstall pip=="${pip.version}"`; await this.executeBufferedCommand(cmd);