Version: Latest

Python Environment

Python

Check if your Python environment is already configured:

python --version
pip --version
Python3 Supported Versions

Currently, rasa supports the following Python versions: 3.8, 3.9 and 3.10. Note that Python 3.10 is only supported for versions 3.4.x and upwards. Additionally, Apple Silicon with Python 3.10 is only supported starting from 3.5.x.

If these packages are already installed, these commands should display version numbers for each step, and you can skip to the next step.

Otherwise, proceed with the instructions below to install them.

Fetch the relevant packages using apt, and install virtualenv using pip.

sudo apt update
sudo apt install python3-dev python3-pip

Virtual Environment Setup

We strongly recommend isolating python projects using virtual environments. Python comes with the venv module, which is used as:

Create a new virtual environment in ./venv directory with:

python -m venv ./venv

Activate the virtual environment:

source ./venv/bin/activate

Alternatives to venv are virtualenv, virtualenvwrapper and Miniconda.