Skip to content

Commit

Permalink
Document conda-standalone install workarounds (#511)
Browse files Browse the repository at this point in the history
* Document conda-standalone install workarounds

* add news

* Apply suggestions from code review

Co-authored-by: Jannis Leidel <[email protected]>

* Disambiguate Windows / Unix executable conventions

---------

Co-authored-by: Jannis Leidel <[email protected]>
  • Loading branch information
jaimergp and jezdez authored Aug 20, 2024
1 parent 6d73b66 commit e9a7d53
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/user-guide/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,28 @@ Before version 22.12, the CLI flag was `--experimental-solver`.
We recommend you upgrade to `conda` 22.11 or above, and then `conda-libmamba-solver` 22.12 or above.
See the [22.12.0 announcement post](https://github.com/conda/conda-libmamba-solver/releases/tag/22.12.0) for more details on how to upgrade.
## I have an older `conda` and I can't install `conda-libmamba-solver`
Since older `conda` versions only supported the `classic` solver, you might run into solver conflicts or too long installations if your `base` environment is too constrained. This becomes a "chicken-and-egg" problem where you'd need `conda-libmamba-solver` to update to a more recent `conda` with `conda-libmamba-solver`.
Fortunately, there's a workaround thanks to the `conda-standalone` project. This is a single binary that bundles recent `conda` versions, with `conda-libmamba-solver` included. It's not a substitute for the full `conda` user experience but it can help bootstrap and rescue conda installations.
1. Download the most recent `conda-standalone` from its [Github Releases page](https://github.com/conda/conda-standalone/releases/latest). Make sure to pick the one for your operating system and platform. Once downloaded, rename it as `conda.exe` on Windows and `conda` on Linux / macOS.
2. Write down the location of your `base` environment: `conda info --root`.
3. Write down the main preconfigured channel in your installation: `conda config --show channels`. This is usually `defaults` or `conda-forge`.
4. Go to the Downloads directory and run this command from your terminal:
On Windows:
```console
.\conda.exe install -p "[path given by step 2]" -c [channel from step 3] "conda>=23.10" conda-libmamba-solver
```

On Linux or macOS:

```console
./conda install -p "[path given by step 2]" -c [channel from step 3] "conda>=23.10" conda-libmamba-solver
```

Once the command succeeds, you'll have `conda-libmamba-solver` installed in your base environment and will be ready to use it as normal. You can delete the conda-standalone binaries.
19 changes: 19 additions & 0 deletions news/511-conda-standalone-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
### Enhancements

* <news item>

### Bug fixes

* <news item>

### Deprecations

* <news item>

### Docs

* Add installation workarounds FAQ with conda-standalone. (#505 via #511)

### Other

* <news item>

0 comments on commit e9a7d53

Please sign in to comment.