I am trying to use: @conda_base( libraries={ ...
# ask-metaflow
h
I am trying to use: @conda_base( libraries={ “pandas”: “1.5.0", “snowflake-connector-python”: “3.0.0", }, python=“3.10.6”, ) but get: Bootstrapping conda environment...(this could take a few minutes) Conda ran into an error while setting up environment.: Step: start, Error: PackagesNotFoundError: The following packages are not available from current channels: - snowflake-connector-python==3.0.0 I had a look but I do not think this package exists here: https://conda.anaconda.org/conda-forge/linux-64 do I need to include something along those lines: os.system(‘pip install my_package’) import my_package ? Thanks! Could be that it does not exist: conda search -c conda-forge snowflake-connector-python but I have version locally …
1
f
hey @happy-wolf-7852 looks like 3.0.0 is not available in that channel: https://anaconda.org/conda-forge/snowflake-connector-python/files I'm seeing 2.8.3 and then it jumps to 3.0.1, there may have been an issue w the 3.0.0 maj version and could have been pulled if you see that version in another channel you can specify it as described here: https://outerbounds.com/docs/specify-conda-channels/
🙌 2
I've been using the following in a handful of projects:
Copy code
@conda_base(
    python="3.10",
    libraries={
        "pandas": ">=1.0.0,<2.1.0",
        "pyarrow": ">=10.0.1,<10.1.0",
        "snowflake-connector-python": "3.0.4"
    },
)
its fairly picky when it comes to pandas/arrow compat
🙌🏽 1
🙌 2
h
hi all, thanks yes unavailability in this channel was the issue