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
- Python(requires Python 3.6.o or higher)
For Windows
- Use the following code and check whether your Python environment is already installed:
$ python --version- If not, then install it using
C:\> pip3 install -U pipFor macOS:
- Before installing Python, you have to install the Homebrew package manager if you haven’t already. Use the following code to do so:
$ brew update
$ brew install python2.. 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:
C:\> python3 -m venv --system-site-packages ./venv- You can activate the virtual environment by typing the following code:
C:\> .\venv\Scripts\activateFor macOS:
- You can create the virtual environment by opening the command prompt and typing the following code:
$ python3 -m venv --system-site-packages ./venv- You can activate the virtual environment by typing the following code:
$ source ./venv/bin/activateInstallation Rasa and Rasa X
- You can install both Rasa and Rasa X using the following code:
$ pip install rasa-x --extra-index-url https://pypi.rasa.com/simple- Use the following code only if you want to install Rasa:
$ pip install rasa 5- Install Rasa NLUand Spacy in the same command prompt:
$ pip install rasa[spacy]
$ python -m spacy download en_core_web_md
$ python -m spacy link en_core_web_md enNote: If the system prompts you to upgrade pip, then use the following commands:
For Windows:
python -m pip install --upgrade pipFor macOS:
pip install pip –upgrade
pip install setuptools –upgradeFor 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.