My understanding is that this: ```@conda_base( ...
# ask-metaflow
h
My understanding is that this:
Copy code
@conda_base(
    libraries={
        "pandas": "1.5.0",
    },
    python="3.10.6",
)
is kind of the requirements.txt of a flow - ready for potential remote execution. I used:
Copy code
conda search -c conda-forge pandas
to determine possible package versions for each python version. This can return quite a long list. Is there a way to restrict this search to a python version (e.g. 3.10.6 as above)? Sorry google did not return much and chatgpt talks nonsense 😀
1
v
you can resolve packages by fake-installing them:
Copy code
mamba install --dry-run python=3.10.3 pandas
thanks to
--dry-run
it doesn't actually install anything, just output the versions. It'll output versions of everything, which is a bit verbose, so you can do
Copy code
mamba install --dry-run python=3.10.3 pandas | grep pandas
to see just the version of
pandas
that's compatible with the given
python
version
❤️ 1
(note that
mamba
is faster than
conda
)
in case you didn't know, prefix.dev provides a nice web interface for Conda packages which allows you see compatible Python versions pretty easily - see e.g. https://prefix.dev/channels/conda-forge/packages/pandas