Check conda-forge channel first when installing conda packages. (#10035)

This commit is contained in:
Cory Rivera
2020-04-16 16:58:32 -07:00
committed by GitHub
parent 04ec347eeb
commit 2817316cf4

View File

@@ -625,7 +625,7 @@ export class JupyterServerInstallation implements IJupyterServerInstallation {
let versionSpecifier = useMinVersion ? '>=' : '==';
let packagesStr = packages.map(pkg => `"${pkg.name}${versionSpecifier}${pkg.version}"`).join(' ');
let condaExe = this.getCondaExePath();
let cmd = `"${condaExe}" install -y ${packagesStr}`;
let cmd = `"${condaExe}" install -c conda-forge -y ${packagesStr}`;
return this.executeStreamedCommand(cmd);
}