Installing Rasa: MacOS

Video


To get started with Rasa on MacOS you'll first need to install a modern version of Python, which you can do from here.

In the video we've downloaded Python 3.7 and we can confirm that everything is installed correctly by running the following command:

python3.7 --version

With Python ready, we can now configure a Rasa project. The following commands take care of that.

# First we install a tool that allows us to make a Rasa environment
python3.7 -m pip install virtualenv
# Next we create a folder for our project and go into it
mkdir rasa-init-demo
cd rasa-init-demo
# Next we create a new environment for Rasa
python3.7 -m virtualenv venv
# This creates a `venv` folder with our virtual environment.
# We can now activate the environment and install Rasa.
source venv/bin/activate
# Our `python` now refers to the python version in the virtualenv.
python -m pip install rasa

Once Rasa is installed we can use it!

# Run Rasa with help command
python -m rasa --help
# Create a new Rasa project
python -m rasa init

Once the project is created, we can start talking to the bot.

# Run Rasa with interactive shell
python -m rasa shell

2016-2024 © Rasa.