mamba-org / mamba

The Fast Cross-Platform Package Manager
https://mamba.readthedocs.io
BSD 3-Clause "New" or "Revised" License
6.69k stars 346 forks source link

full path of micromamba doesn't work #3176

Closed hongy19 closed 6 months ago

hongy19 commented 6 months ago

Troubleshooting docs

Anaconda default channels

How did you install Mamba?

Micromamba

Search tried in issue tracker

yes

Latest version of Mamba

Tried in Conda?

Not applicable

Describe your issue

when I use micromamba, it seems full path doesn't work but micromamba could work hongy19@WSL ~$ /home/hongy19/micromamba/pkgs/micromamba-1.5.1-0/bin/micromamba activate hongy19@WSL ~$ micromamba activate

hongy19@WSL ~$ /home/hongy19/micromamba/pkgs/micromamba-1.5.1-0/bin/micromamba activate
'micromamba' is running as a subprocess and can't modify the parent shell.
Thus you must initialize your shell before using activate and deactivate.
To initialize the current bash shell, run:
    $ eval "$(micromamba shell hook --shell bash)"
and then activate or deactivate with:
    $ micromamba activate
To automatically initialize all future (bash) shells, run:
    $ micromamba shell init --shell bash --root-prefix=~/micromamba
If your shell was already initialized, reinitialize your shell with:
    $ micromamba shell reinit --shell bash
Otherwise, this may be an issue. In the meantime you can run commands. See:
    $ micromamba run --help
Supported shells are {bash, zsh, csh, xonsh, cmd.exe, powershell, fish}.
critical libmamba Shell not initialized

hongy19@WSL ~$ micromamba activate
(base) hongy19@WSL ~$ micromamba deactivate

mamba info / micromamba info

hongy19@WSL ~$ micromamba info

       libmamba version : 1.5.1
     micromamba version : 1.5.1
           curl version : libcurl/7.88.1 OpenSSL/3.1.2 zlib/1.2.13 zstd/1.5.5 libssh2/1.11.0 nghttp2/1.52.0
     libarchive version : libarchive 3.6.2 zlib/1.2.13 bz2lib/1.0.8 libzstd/1.5.2
       envs directories : /home/hongy19/micromamba/envs
          package cache : /home/hongy19/micromamba/pkgs
                          /home/hongy19/.mamba/pkgs
            environment : None (not found)
           env location : -
      user config files : /home/hongy19/.mambarc
 populated config files : /home/hongy19/.mambarc
       virtual packages : __unix=0=0
                          __linux=5.15.133=0
                          __glibc=2.38=0
                          __archspec=1=x86_64
               channels : https://mirrors.bfsu.edu.cn/anaconda/cloud/conda-forge/linux-64
                          https://mirrors.bfsu.edu.cn/anaconda/cloud/conda-forge/noarch
       base environment : /home/hongy19/micromamba
               platform : linux-64

Logs

No response

environment.yml

No response

~/.condarc

No response

jonashaag commented 6 months ago

Please search for related issues

hongy19 commented 6 months ago

Sorry that I don't search issue list careful enough. Just understand micromamba is a bash function, not binary from https://github.com/mamba-org/mamba/issues/2245

More detail could see at micromamba/etc/profile.d/micromamba.sh