PyCall build fails during Conda installation on Win 11

On a fresh Win 11 and Julia 1.9.2 installation, building PyCall results in an error during the miniconda installation step:

ERROR: Error building PyCall:
┌ Info: Using the Python distribution in the Conda package by default.
└ To use a different Python version, set ENV["PYTHON"]="pythoncommand" and re-run"PyCall").
[ Info: Downloading miniconda installer ...
[ Info: Installing miniconda ...
ERROR: LoadError: failed process: Process('C:\Users\Ron\AppData\Local\Temp\installer.exe' /S --no-shortcuts /NoRegistry=1 /AddToPath=0 /RegisterPython=0 '/D=C:\Users\Ron\.julia\conda\3', ProcessExited(2)) [2]
1 Like

The reason for the error was that for some reason the miniconda installer.exe is copied into the destination folder ( /D=C:\Users\Ron\.julia\conda\3). Deleting it from there, and running the command line (C:\Users\Ron\AppData\Local\Temp\installer.exe /S --no-shortcuts /NoRegistry=1 /AddToPath=0/RegisterPython=0 /D=C:\Users\Ron\.julia\conda\3 from powershell installed conda, after which building PyCall works fine.

1 Like

Thanks for writing this up! I’m seeing a similar report here: