Skip to content

Commit 92de4ea

Browse files
authored
docs: Mention add_pip_as_python_dependency in compatibility mode for pixi-pack (#3188)
1 parent 40fb341 commit 92de4ea

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/advanced/production_deployment.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,11 @@ conda env create -p ./env --file environment.yml
168168

169169
!!!note ""
170170
The `environment.yml` and `repodata.json` files are only for this use case, `pixi-pack unpack` does not use them.
171+
172+
!!!note ""
173+
Both `conda` and `mamba` are always installing pip as a side effect when they install python, see [`conda`'s documentation](https://docs.conda.io/projects/conda/en/25.1.x/user-guide/configuration/settings.html#add-pip-as-python-dependency-add-pip-as-python-dependency).
174+
This is not different from how `pixi` works and can lead to solver errors when using `pixi-pack`'s compatibility mode since `pixi-pack` doesn't include `pip` by default.
175+
You can fix this issue in two ways:
176+
177+
- Add `pip` to your `pixi.lock` file using `pixi add pip`.
178+
- Configuring `conda` (or `mamba`) to not install `pip` by default by running `conda config --set add_pip_as_python_dependency false` (or by adding `add_pip_as_python_dependency: False` to your `~/.condarc`)

0 commit comments

Comments
 (0)