mamba-org / mamba

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

Powershell initialization Error message on Windows #3314

Open GitHunter0 opened 3 months ago

GitHunter0 commented 3 months ago

Troubleshooting docs

Anaconda default channels

How did you install Mamba?

Micromamba

Search tried in issue tracker

Powershell initialization Error message on Windows

Latest version of Mamba

Tried in Conda?

I do not have this problem with Conda, just with Mamba

Describe your issue

Hi folks, I just installed Micromamba on Windows following the instructions. It works, however, every time I initialize the Powershell, I get this error message:

Remove-Variable : Cannot find a variable with the name 'MambaModuleArgs'.
At line:3 char:1
+ Remove-Variable MambaModuleArgs
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (MambaModuleArgs:String) [Remove-Variable], ItemNotFoundException
    + FullyQualifiedErrorId : VariableNotFound,Microsoft.PowerShell.Commands.RemoveVariableCommand

How can I solve that?

Thank you

mamba info / micromamba info

libmamba version : 1.4.6
     micromamba version : 1.4.6
           curl version : libcurl/8.1.2-DEV Schannel zlib/1.2.13
     libarchive version : libarchive 3.6.2 zlib/1.2.13 liblzma/5.4.3 bz2lib/1.0.8 liblz4/1.9.4 libzstd/1.5.5
       envs directories : C:\Users\user1\micromamba\envs
          package cache : C:\Users\user1\micromamba\pkgs
                          C:\Users\user1\.mamba\pkgs
                          C:\Users\user1\AppData\Roaming\.mamba\pkgs
            environment : None (not found)
           env location : -
      user config files : C:\Users\user1\.mambarc
 populated config files : C:\Users\user1\.mambarc
                          C:\Users\user1\.condarc
       virtual packages : __win=0=0
                          __archspec=1=x86_64
               channels : https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
                          https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
       base environment : C:\Users\user1\micromamba
               platform : win-64

Logs

No response

environment.yml

No response

~/.condarc

No response

GitHunter0 commented 3 months ago

Another Powershell (minor) issue is that the environment name appears twice as prefix once it is activated. The print below exemplifies that:

image

shijunti19 commented 1 month ago

什么时候解决啊