Search code examples
pythoncondaminicondaanaconda3

Installing conda packages in specific directory


Is there any way to download and install the conda packages in specified directory without creating a conda environment in that directory?


Solution

  • If you just want to download the packages, you can set an environmental variable to the specified directory, and use the --download-only switch

    set CONDA_PKGS_DIRS=C:\temp
    
    conda install zlib --download-only
    
    dir c:\temp\
     Volume in drive C is Windows
     Volume Serial Number is DC83-883D
    
     Directory of c:\temp
    
    ...
    07/13/2020  08:16 PM    <DIR>          zlib-1.2.11-h2fa13f4_1006
    07/13/2020  08:16 PM           241,593 zlib-1.2.11-h2fa13f4_1006.tar.bz2