From b770b3b11dcf46612c7c2b7b31ad757b06ffa8be Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Sun, 23 Feb 2025 13:10:54 +0100 Subject: [PATCH 1/2] docs: Mention add_pip_as_python_dependency in compatibility mode for pixi-pack --- docs/advanced/production_deployment.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/advanced/production_deployment.md b/docs/advanced/production_deployment.md index cbbd549fa7..11a3e18c05 100644 --- a/docs/advanced/production_deployment.md +++ b/docs/advanced/production_deployment.md @@ -151,3 +151,11 @@ conda env create -p ./env --file environment.yml !!!note "" The `environment.yml` and `repodata.json` files are only for this use case, `pixi-pack unpack` does not use them. + +!!!note "" + 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). + 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. + You can fix this issues in two ways: + + - Add `pip` to your `pixi.lock` file using `pixi add pip`. + - 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`) From 3ee467801cbe915ed22f74fa8ef08128560ae408 Mon Sep 17 00:00:00 2001 From: Pavel Zwerschke Date: Sun, 23 Feb 2025 13:21:22 +0100 Subject: [PATCH 2/2] Update production_deployment.md --- docs/advanced/production_deployment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/advanced/production_deployment.md b/docs/advanced/production_deployment.md index 11a3e18c05..820bac7593 100644 --- a/docs/advanced/production_deployment.md +++ b/docs/advanced/production_deployment.md @@ -155,7 +155,7 @@ conda env create -p ./env --file environment.yml !!!note "" 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). 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. - You can fix this issues in two ways: + You can fix this issue in two ways: - Add `pip` to your `pixi.lock` file using `pixi add pip`. - 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`)