Installing Rasa: Ubuntu


To install Rasa on Ubuntu we should first install a modern python version.

# First we should update apt, just in case.
sudo apt update
# Install python
sudo apt install python3-dev python3
# Once it is installed you should be able to confirm the versions.
python3 --version
pip3 --version

Now that we have these tools installed we can create a folder for our Rasa project.

# Create and Enter Folders
mkdir rasaprojects
cd rasaprojects
# Next we install python3-pip so that we can install python packages
sudo apt install python3-venv
# We can now create a virtualenv
python3 -m venv ./venv

With our virtualenv available we can now active it and install Rasa.

# Source the virtualenv
source ./venv/bin/activate
# Install Rasa and Upgrade pip
python -m pip install --upgrade pip rasa
# Our `python` now refers to the python version in the virtualenv.
# From here you should be able to use Rasa
python -m rasa --help
python -m rasa init

2016-2024 © Rasa.