Rasa Enablement Pre-Requisites
Looking to complete your Rasa enablement and get a certification?
Well, firstly, you will have to install the Rasa platform!
We've documented all the steps in these simple-to-use installation instructions.
Once installed, you will be able to apply your newly acquired Rasa knowledge and create your own Conversational AI Assistant.
Before You Begin
You will need:
- A free Rasa Pro Developer Edition license. To request the license, you will simply have to provide your email address where your Developer Edition license for Rasa Pro will be provided. Once you hit submit, you will immediately receive your Rasa Pro Developer Edition license, which you will be able to use to start building with CALM. Store this somewhere safe as you’ll need it a bit later in the instructions below. The actual installation of the Rasa Pro platform will be performed during the installation steps described below.
Installation steps:
Currently, rasa supports the following Python versions: 3.9, 3.10 and 3.11.
Check if your Python environment is already configured and a supported version by typing:
python --version
If this package is already installed, this command should display version numbers, and you can skip to the step no 2.
Otherwise, proceed with the instructions below to install Python.
Ubuntu:
- Fetch the relevant packages using apt, and install virtualenv using pip:
sudo apt update
sudo apt install python3-dev python3-pi
- Fetch the relevant packages using apt, and install virtualenv using pip:
macOS:
- Install the Homebrew package manager if you haven't already then Python.
brew update
brew install python
- Install the Homebrew package manager if you haven't already then Python.
Windows:
- Make sure the Microsoft VC++ Compiler is installed, so Python can compile any dependencies. You can get the compiler from Visual Studio.
- Download the installer and select VC++ Build tools in the list.
- Install Python 3 (64-bit version) for Windows.
C:\> pip3 install -U pip
Setup a Virtual Environment.
We strongly recommend isolating python projects using virtual environments.
These instructions will leverage the venv module included in Python.
Create a new virtual environment in ./venv directory with:
- Ubuntu:
python -m venv ./venv
- macOS:
python -m venv ./venv
- Windows:
C:\> python -m venv ./venv
- Ubuntu:
Activate the virtual environment with:
- Ubuntu:
source ./venv/bin/activate
- macOS:
source ./venv/bin/activate
- Windows:
C:\> .\venv\Scripts\activate
- Ubuntu:
The following steps will leverage pip and uv (Python package installer and project manager).
- Make sure pip is installed by typing
pip --version
in a terminal windows - If pip is not installed, follow these instructions for your operating system.
- Make sure uv is installed by typing
uv --version
in a terminal windows - If uv is not installed, install uv by typing
pip install uv
- Make sure pip is installed by typing
Install rasa-pro with by typing the following command
uv pip install rasa-pro
Once the installation is complete, you must create the env variable RASA_PRO_LICENSE, which must contain the content of the license key file provided by rasa. You can set the RASA_PRO_LICENSE env var temporarily in your terminal, but it is recommended to set it persistently so that you don't have to set it every time you run Rasa Pro.
Both options can be accomplished by typing:
Ubuntu:
- For the temporary option:
export RASA_PRO_LICENSE=<your-license-string>
- For the persistent option:
echo "export RASA_PRO_LICENSE=<your-license-string>" >> ~/.bashrc
- If you're using a different flavor of bash e.g. Zsh, replace
.bashrc
with your shell's initialization script e.g.~/.zshrc
- For the temporary option:
macOS:
- For the temporary option:
export RASA_PRO_LICENSE=<your-license-string>
- For the persistent option:
echo "export RASA_PRO_LICENSE=<your-license-string>" >> ~/.bashrc
- If you're using a different flavor of bash e.g. Zsh, replace
.bashrc
with your shell's initialization script e.g.~/.zshrc
- For the temporary option:
Windows:
- For the temporary option:
$env: RASA_PRO_LICENSE=<your-license-string>
- For the persistent option:
[System.Environment]::SetEnvironmentVariable('RASA_PRO_LICENSE','<your-license-string>','USER')
- For the temporary option:
Congratulations, you have successfully installed Rasa and are ready to start the Conversational AI with CALM Rasa course on the Rasa Learning Center.