-
Notifications
You must be signed in to change notification settings - Fork 731
Description
I would like to build a linux-64 conda environment containing the following:
- pytorch
- torchaudio
- ffmpeg at a recent version (I actually use ffmpeg via pyav, so it must be a recent version to allow using a recent python version)
The following approach results in a conflict:
$ CONDA_SUBDIR=linux-64 CONDA_CHANNEL_PRIORITY=strict conda create --name test -c pytorch -c conda-forge pytorch torchaudio 'ffmpeg>5'
[...]
LibMambaUnsatisfiableError: Encountered problems while solving:
- package ffmpeg-5.1.2-lgpl_hd27bd3a_6 is excluded by strict repo priority
Because an old version of ffmpeg is available in the pytorch channel, so strict channel priority (recommended by conda https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-channels.html#strict-channel-priority) prevents using a lower priority channel.
torchaudio is not available in conda-forge so I need both channels. If I make the conda-forge channel higher priority than the pytorch channel then I end up with pytorch and torchaudio from different channels, which causes errors at runtime.
It seems like the only way to achieve this is to use flexible channel priority rather than strict, but conda discourage this and plan to make strict the default in future. Do you have any recommendations?