macro128 / pdm-conda

A PDM plugin to resolve/install/uninstall project dependencies with Conda
33 stars 1 forks source link

[Question] How is this supposed to be initially configured in a conda env? #27

Closed T145 closed 7 months ago

T145 commented 7 months ago

On Windows, I did the following:

conda create -n loras python=3.10 pip pipx -c conda-forge
conda activate loras
pipx install pdm[all]
pdm config venv.backend conda
pdm self update
pdm self add pdm-conda
pdm init
pdm add conda-lock mamba
pdm install

Then adding this to my pyproject.toml:

[tool.pdm.conda]
runner = "mamba"
channels = ["conda-forge", "anaconda"]
dependencies = ["pdm"]
as-default-manager = true
solver = "libmamba"

Causes this error:

mamba: error: unrecognized arguments: -y --strict-channel-priority --json --prefix /tmp/0bdea286-8e56-4916-ae24-f528581852d5 --dry-run conda-lock>=2.5.1 mamba>=0.11.3 pdm python<3.10.14,>=3.10.13 -c conda-forge -c anaconda   
--override-channels

Removing mamba from the specifications does nothing unfortunately. Any ideas on how to fix it?