Skip to content

Commit 92afbe7

Browse files
authored
docs: Mention add_pip_as_python_dependency in compatibility mode (#103)
1 parent 5a6ce96 commit 92afbe7

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@
55
# Changes
66

77
<!-- What changes have been performed? -->
8+
9+
---
10+
11+
If updating documentation:
12+
13+
- [ ] Updated documentation in https://github.com/prefix-dev/pixi/blob/main/docs/advanced/production_deployment.md as well

README.md

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

199199
> [!NOTE]
200200
> The `environment.yml` and `repodata.json` files are only for this use case, `pixi-pack unpack` does not use them.
201+
202+
> [!NOTE]
203+
> 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).
204+
> 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.
205+
> You can fix this issue in two ways:
206+
>
207+
> - Add `pip` to your `pixi.lock` file using `pixi add pip`.
208+
> - 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)