mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-13 03:28:33 -05:00
pass in pythonexecutable when getting packages (#14550)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user