@@ -23,7 +23,8 @@ export async function jupyterCreateVenv(dir: string, packages?: string[]) {
2323 if ( caps ) {
2424 const executable = caps . pyLauncher ? "py" : caps . executable ;
2525 const result = await execProcess ( {
26- cmd : [ executable , "-m" , "venv" , kEnvDir ] ,
26+ cmd : executable ,
27+ args : [ "-m" , "venv" , kEnvDir ] ,
2728 cwd : dir ,
2829 } ) ;
2930 if ( ! result . success ) {
@@ -36,7 +37,8 @@ export async function jupyterCreateVenv(dir: string, packages?: string[]) {
3637 ) ;
3738 packages = ld . uniq ( [ "jupyter" ] . concat ( packages || [ ] ) ) ;
3839 const installResult = await execProcess ( {
39- cmd : [ pip3 , "install" , ...packages ] ,
40+ cmd : pip3 ,
41+ args : [ "install" , ...packages ] ,
4042 cwd : dir ,
4143 } ) ;
4244 if ( ! installResult . success ) {
@@ -55,7 +57,8 @@ export async function jupyterCreateCondaenv(dir: string, packages?: string[]) {
5557 info ( `Using conda at ${ conda } ` ) ;
5658 packages = ld . uniq ( [ "jupyter" ] . concat ( packages || [ ] ) ) ;
5759 const installResult = await execProcess ( {
58- cmd : [ "conda" , "create" , "--yes" , "--prefix" , "env" , ...packages ] ,
60+ cmd : "conda" ,
61+ args : [ "create" , "--yes" , "--prefix" , "env" , ...packages ] ,
5962 cwd : dir ,
6063 } ) ;
6164 if ( ! installResult . success ) {
0 commit comments