Using Python
Rasa Pro has a Python package called rasa-pro
that you can install locally, with either pip
or poetry
.
Setup Your Python Environment
Check if your Python environment is already configured:
python --version
pip --version
Rasa supports Python 3.9
, 3.10
and 3.11
.
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.
- Ubuntu
- macOS
- Windows
Fetch the relevant packages using apt
, and install virtualenv using pip
.
sudo apt update
sudo apt install python3-dev python3-pip
Install the Homebrew package manager if you haven't already.
Once you're done, you can install Python3.
brew update
brew install python
Install Python 3 (64-bit version) for Windows, being sure to download a version supported by Rasa Pro. Then, install pip
:
C:\> pip3 install -U pip
Virtual Environment Setup
We strongly recommend isolating python projects using virtual environments. Python comes with the venv module, which you can use by following the instructions for your OS below:
- Ubuntu
- macOS
- Windows
Create a new virtual environment in ./venv
directory with:
python -m venv ./venv
Activate the virtual environment:
source ./venv/bin/activate
Create a new virtual environment in ./venv
directory with:
python -m venv ./venv
Activate the virtual environment:
source ./venv/bin/activate
Create a new virtual environment in .\venv
directory with:
C:\> python -m venv ./venv
Activate the virtual environment:
C:\> .\venv\Scripts\activate
Alternatives to venv
are
virtualenv,
virtualenvwrapper and
Miniconda.
Installing Rasa Pro with pip
or uv
Install Rasa Pro with:
pip install rasa-pro
You can significantly speed up the installation process with the uv package manager:
pip install uv
uv pip install rasa-pro
That's it - you should now be ready to dive into building your first bot! For troubleshooting tips or FAQs on install see our troubleshooting guide.