Skip to content

micromamba list and micromamba env export does not list packages installed by uv #4013

@sidmadala

Description

@sidmadala

Troubleshooting docs

  • My problem is not solved in the Troubleshooting docs

Anaconda default channels

  • I do NOT use the Anaconda default channels (pkgs/* etc.)

How did you install Mamba?

Micromamba

Search tried in issue tracker

Searched all issues (opened/closed) mentioning uv

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

Not applicable

Describe your issue

Creating an environment with micromamba and uv is fast and convenient. However, when I export this environment to lock the dependencies, the environment.yml file does not contain any of the dependencies installed by uv. micromamba list also does not list packages installed from pypi, and I must use uv pip list instead. This behavior does not happen when using pip.

mamba info / micromamba info

       libmamba version : 2.3.0
     micromamba version : 2.3.0
           curl version : libcurl/8.14.1 OpenSSL/3.5.0 zlib/1.3.1 zstd/1.5.7 libssh2/1.11.1 nghttp2/1.64.0
     libarchive version : libarchive 3.8.1 zlib/1.3.1 bz2lib/1.0.8 libzstd/1.5.7 libb2/bundled
       envs directories : /home/simadala/micromamba/envs
          package cache : /home/simadala/micromamba/pkgs
                          /home/simadala/.mamba/pkgs
            environment : test_env_uv (active)
           env location : /home/simadala/micromamba/envs/cos_env_updated
      user config files : /home/simadala/.mambarc
 populated config files : /home/simadala/.condarc
       virtual packages : __unix=0=0
                          __linux=5.14.0=0
                          __glibc=2.34=0
                          __archspec=1=x86_64_v4
               channels : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://conda.anaconda.org/nodefaults/linux-64
                          https://conda.anaconda.org/nodefaults/noarch
       base environment : /home/simadala/micromamba
               platform : linux-64

Logs

environment.yml

name: uv_test_env
channels:
  - conda-forge
dependencies:
  - python
  - uv
  - pip:
    - torch

exported environment.yml

name: uv_test_env
channels:
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=conda_forge
  - _openmp_mutex=4.5=2_gnu
  - bzip2=1.0.8=h4bc722e_7
  - ca-certificates=2025.7.14=hbd8a1cb_0
  - icu=75.1=he02047a_0
  - ld_impl_linux-64=2.44=h1423503_1
  - libexpat=2.7.0=h5888daf_0
  - libffi=3.4.6=h2dba641_1
  - libgcc=15.1.0=h767d61c_3
  - libgcc-ng=15.1.0=h69a702a_3
  - libgomp=15.1.0=h767d61c_3
  - liblzma=5.8.1=hb9d3cd8_2
  - libmpdec=4.0.0=hb9d3cd8_0
  - libsqlite=3.50.2=hee844dc_2
  - libstdcxx=15.1.0=h8f9b012_3
  - libstdcxx-ng=15.1.0=h4852527_3
  - libuuid=2.38.1=h0b41bf4_0
  - libzlib=1.3.1=hb9d3cd8_2
  - ncurses=6.5=h2d0b736_3
  - openssl=3.5.1=h7b32b05_0
  - pip=25.1.1=pyh145f28c_0
  - python=3.13.5=hec9711d_102_cp313
  - python_abi=3.13=7_cp313
  - readline=8.2=h8c095d6_2
  - tk=8.6.13=noxft_hd72426e_102
  - tzdata=2025b=h78e105d_0
  - uv=0.7.21=heb9285d_0

~/.condarc

channels:
  - conda-forge
  - defaults
  - nodefaults
auto_activate_base: false
channel_priority: strict
use_uv: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions