Comments (18)
For anyone on macOS using Catalina or newer and thus have zsh
instead of bash
conda init zsh
from mamba.
yep, indeed we need to figure out how to make the mamba
command available outside the base environment! Thanks for reporting.
from mamba.
As a workaround adding mamba() { ~/.conda/envs/base_mamba/bin/mamba "$@" ;}
to ~/.bashrc
does the trick though
from mamba.
This seems tricky because ideally we would want mamba
to be in the user's PATH even when there is no active conda environment (post conda deactivate
) as well so that mamba env create ...
work regardless of which if any conda env is active. In our build process I'm just linking mamba
to a bin dir which seems to work well:
ls -s "$(conda info --base)/bin/mamba" "/usr/local/bin/mamba"
from mamba.
from mamba.
is this fixed for Windows? I am still getting this error.
from mamba.
sorry for the late reply. It is working now, after reinstall.
from mamba.
I still cannot run mamba in another environment, runs only in base. Can anyone help ? Should I add to path environments or something ?
from mamba.
this is fixed for linux now -- need to confirm that it works on osx & win as well (win not yet released).
from mamba.
fixed by putting a link to mamba in the condabin
directory.
from mamba.
yep, should be fixed on windows, too.
What version do you have? Did you run conda init
?
from mamba.
I am using the latest version. I did try conda init but still the same error.
from mamba.
can you post conda info
and the contents of your base env condabin
folder?
from mamba.
@wolfv I believe that does not work when one does not have write access to condabin, correct? I am on a shared cluster environment where the base environment and packages in general are managed centrally.
I tried
- updating mamba
- remove the env in which mamba was and reinstall
But it still does not work.
from mamba.
for mambaforge on osx a simple mamba() { ~/mambaforge/bin/mamba "$@" ;}
in .zshrc
works too. tested on osx-arm64.
from mamba.
As a workaround adding
mamba() { ~/.conda/envs/base_mamba/bin/mamba "$@" ;}
to~/.bashrc
does the trick though
Where did you add this in bashrc? It says my base env is micromamba but I can't seem to run 'mamba' in the terminal anywhere. Strangely enough, all my packages and the environment is working fine and being recognized by VScode.
from mamba.
Please create a new ticket using the issue template and show exactly what you did and what you expected
from mamba.
This is still an issue. Installing with mambaforge-pypy first runs into the issue of missing DLLs. After manually copying the files to the correct location, mamba works in the miniforge base env, but is not found in an environment created with mamba create
.
My workaround for now is this:
- create a folder somewhere and inside it a link to the
mamba.bat
frommambaforge-pypy3\condabin\mamba.bat
- add that folder to the path in the windows settings
- use
mamba.lnk
instead ofmamba
for all commands once the env is activated - once that works, you can change the PATHEXT to include links, so you don't have to type
.lnk
( cc @foobar41 maybe this helps you too )
The reason I made a new folder instead of adding condabin
to the path is that I do not want the mamba's conda
executables to clash with my existing conda installation.
from mamba.
Related Issues (20)
- `UnSolvable.explain_problems()` fails if the conflict involves a pinned package and the request has `flags.allow_uninstall=False`
- miniforge3/bin/conda shebang points to wrong python
- v2: Ctrl+C / SIGINT / KeyboardInterrupt handling not working HOT 19
- Restore alphbetized package listing order when installing (or at least allow this via config option) HOT 2
- Faster/efficient alternative to conda build HOT 2
- url redirect in channel_alias makes the cache invalid
- Implement CEP-15 `base_url` (repodata_version: 2)
- Digital signatures HOT 1
- Possible to disallow a version without making it a dependency?
- ENH,SEC: Add conda-content-trust support to not bypass signature verification in conda >= 23.10
- mamba pip install packages into wrong directory (it uses .local site instead of environment site) HOT 2
- mamba argument COMMAND: conflicting subparser: repoquery after trying to update all packages in conda base environment
- [micromamba] environment variables in condarc only resolved when using curly brackets
- [micromamba] empty lines / comments fail in text spec file
- solver_addrule: Assertion `!p2 && d > 0' failed
- 'emscripten' is not a valid Platform HOT 14
- Upgrade of zstd causes crash
- libmambapy add_constraint adds constraint packages to install HOT 1
- libmamba solver failure example
- micromamba is not statically linked as documentation claims HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mamba.