Skip to content
KNIME Documentation
Main Navigation Get startedBuildWork with KnimeAccount and adminRelease notesDeveloper tools
Community Hub
DevelopersKnime
Sidebar Navigation

Getting Started

Installation

User Guide

Release Notes

Install Extensions

Building Workflows

Components

Flow Control

Expressions

File Handling

Deployment

Integrated Deployment

Workflow Invocation

Best Practices

Advanced Features

AI Extension

Get Started

Build an Agent

Inject context with RAG

LLM Providers

Tutorials

Summarize product reviews

Product FAQ assistant

Restaurant agent

Your first local agent

Task extractor

Reporting

Kerberos

Extensions

Database

Overview

Tutorials

Read and filter data from a database

Write a transformed dataset to a database

Concepts

Ports and Sessions

Query Generation

Type Mapping

Deprecated Framework

Connecting

Connect: Dedicated Node

Connect: File-Based Database

Connect: Generic DB Connector

Register a JDBC Driver

Install Third-Party Driver Plug-in

Drivers on Hub and Server

Kerberos Constrained Delegation

Reading and Transforming

Read Data

Transform Data Visually

Run a Custom SQL Query

Parameterize a Query

Writing and Modifying

Insert, Update, or Merge

Delete Rows

Bulk Load Data

Create and Remove Tables

Use Transactions

Reference

Connector Node Settings

JDBC Driver Reference

Deprecated Node Mapping

Migrate Deprecated Workflows

Python

Overview

Tutorials

Python Scripting Quickstart

Data App Development Using Plotly

Data Processing

K-AI Scripting Assistant

Data Type Conversion

Batch Processing

Jupyter Integration

Environment Management

Pixi Configuration

Dependency Management

Environment Persistence

Channel Mirrors & Air-Gapped Setups

Conda Migration

Alternative Configurations

Conda and Miniforge Setup

Conda Environment Propagation

Manual Python Configuration

Legacy Node Migration

Concepts

Pixi Backend Architecture

Storage Logic

Python Environments on Executors

Reference

Python Scripting API

Bundled Packages

Executor and Hub Configuration

Troubleshooting Guide

API Reference

Inputs and outputs

Classes

Views

Utility functions

R

Deep Learning

Snowflake

Google Cloud

Azure

AWS

Big Data

Big Data Admin

Big Data Secured Cluster

Databricks

Microsoft Fabric

Power BI

Tableau

Report Designer

H2O

Changelogs

Version 5.12

Version 5.11

Version 5.10

Version 5.9

Version 5.8

Version 5.7

Version 5.6

Version 5.5

Version 5.3

Extensions

Set up Pixi for Python Environment Management ​

Pixi is the recommended way to manage Python environments in KNIME. It uses the Python Environment Provider node to define, create, and propagate reproducible environments directly within your workflow.

Prerequisites ​

  • KNIME Analytics Platform 5.12 or later installed.
  • KNIME Python Integration extension installed.
  • KNIME Conda Integration extension installed.

TIP

To install the required extensions, you can drag and drop the Python Environment Provider node from KNIME Community Hub into your workflow. KNIME will prompt you to install any missing dependencies automatically.

1 – Add the Python Environment Provider node ​

  1. Open or create a workflow.
  2. From the node repository search for Python Environment Provider and drag it onto the canvas.

2 – Configure the environment and add packages ​

This is where you specify which libraries your Python scripts will use.

  1. Double-click the node to open the configuration dialog.

  2. Define the packages you need. The node provides three input modes:

    • Packages — Click "Add Package" to add packages individually.

    • TOML editor — specify channels and dependencies in TOML format:

      toml
      [workspace]
      channels = ["knime", "conda-forge"]
      platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]
      
      [dependencies]
      python = "3.14.*"
      knime-python-base = "5.9.*"
    • YAML editor — use a Conda-style YAML specification:

      yaml
      name: myenv
      channels:
        - knime
        - conda-forge
      dependencies:
        - python=3.14.*
        - knime-python-base=5.9.*
  3. Click the Resolve Dependencies button in the node dialog. This checks for compatibility and prepares the environment specification.

    If everything is correct you will see an environment-validated message.

Environment Validated

3 – Connect to downstream Python nodes ​

  1. Connect the Python environment output port (orange square) of the Python Environment Provider node to a Python Script or Python View node.
  2. The environment defined in the Python Environment Provider node will be used automatically by all connected downstream Python nodes.

4 – Execute ​

The environment is created when the node executes. During execution the node will:

  1. Resolve the environment specification into a concrete set of packages.
  2. Download and install the packages using Pixi.
  3. Propagate the environment reference to all connected downstream nodes.

connection between PEP node and Python script node

By default the environment is temporary. To make the environment permanent or set it as the workspace-wide default, see Persist an environment in Preferences.

Next steps ​

  • Persist an environment in Preferences
  • Add Python packages
  • Use K-AI for scripting
Pager
Previous pageJupyter Integration
Next pageDependency Management