mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -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);
|
await this.installPythonPackage(backgroundOperation, this._usingExistingPython, this._pythonInstallationPath, this.outputChannel);
|
||||||
// reinstall pip to make sure !pip command works
|
// reinstall pip to make sure !pip command works
|
||||||
if (!this._usingExistingPython) {
|
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 pip: PythonPkgDetails = packages.find(x => x.name === 'pip');
|
||||||
let cmd = `"${this._pythonExecutable}" -m pip install --force-reinstall pip=="${pip.version}"`;
|
let cmd = `"${this._pythonExecutable}" -m pip install --force-reinstall pip=="${pip.version}"`;
|
||||||
await this.executeBufferedCommand(cmd);
|
await this.executeBufferedCommand(cmd);
|
||||||
|
|||||||
Reference in New Issue
Block a user