If you’re developing in Snowpark and using Anaconda’s third-party Python packages, you should configure your local environment to match Snowflake’s runtime. To ensure local-to-production consistency, use Anaconda’s Snowflake channel when building your local environments: https://repo.anaconda.com/pkgs/snowflake/. This channel contains the same Anaconda packages that Snowflake uses inside Snowpark, so you can be confident your local code will run consistently in production. For more information about using Anaconda packages in Snowflake Snowpark, see Using third-party packages from Anaconda.

How it works

Snowflake selects which Anaconda packages to support in Snowpark. Anaconda builds and publishes those packages, then Snowflake tests and approves them for use in their platform. Once they are approved and available inside Snowpark, Anaconda mirrors the packages to the public Snowflake channel at repo.anaconda.com/pkgs/snowflake/.

Configuring conda

To make sure your local environments are compatible with Snowpark, configure conda so the Snowflake channel is the only source of packages. In your .condarc file, the channels: list should look like this:
channels:
- https://repo.anaconda.com/pkgs/snowflake/
For instructions on managing your channels, see Managing channel configuration.