IKH

Installation Guide-Rasa

We strongly suggest completing the installation before moving ahead to the tutorials,so that you can modify and excute the code along with the tutorials.

Requirements

  1. Python(requires Python 3.6.o or higher)

For Windows

  • Use the following code and check whether your Python environment is already installed:
Python
$ python --version
  • If not, then install it using
Python
C:\> pip3 install -U pip

For macOS:

  • Before installing Python, you have to install the Homebrew package manager if you haven’t already. Use the following code to do so:
Python
$ brew update

$ brew install python

2.. Visual Studio: (For Windows only)

  • Open the Microsoft Visual Studio Link: https\\ visualstudio.microsoft.com/downloads/
  • Select ‘Community version 2019’
  • Download the installer and select VC++ Build tools on the list

3.Creating a virtual environment

We strongly recommend that you create a virtual environment before installing Rasa and Rasa X.

Virtual environment tools like virtualenv and virtualenvwrapper provide isolated Python environments. They help you install packages without any dependency conflicts and root privileges.

For Windows

  • You can create a virtual environment by opening the command prompt and typing the following code:

 

Python
C:\> python3 -m venv --system-site-packages ./venv
  • You can activate the virtual environment by typing the following code:
Python
C:\> .\venv\Scripts\activate

For macOS:

  • You can create the virtual environment by opening the command prompt and typing the following code:
Python
$ python3 -m venv --system-site-packages ./venv
  • You can activate the virtual environment by typing the following code:
Python
$ source ./venv/bin/activate

Installation Rasa and Rasa X

  • You can install both Rasa and Rasa X using the following code:
Python
$ pip install rasa-x --extra-index-url https://pypi.rasa.com/simple
  • Use the following code only if you want to install Rasa:
Python
$ pip install rasa 

5- Install Rasa NLUand Spacy in the same command prompt:

Python
$ pip install rasa[spacy]

$ python -m spacy download en_core_web_md

$ python -m spacy link en_core_web_md en

Note: If the system prompts you to upgrade pip, then use the following commands:

For Windows:

Python
python -m pip install --upgrade pip

For macOS:

Python
pip install pip –upgrade

pip install setuptools –upgrade

For more information, you can read the instructions here.

In the next segments ,you will study the two aspects of any converational framework one by one:Natural Language Understanding (NLU) and Dialogue Management Model.