Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting command not found: rasa on using rasa commands

I have installed rasa using:

pip3 install rasa

When I try to use rasa commands like:

rasa init

I get zsh errors:

command not found: rasa error

I am on Mac OS Catalina, using:
Python version 2.7.16
Python3 version 3.7.6
pip version 19.2.3

My path variable looks like this:

/Library/Frameworks/Python.framework/Versions/3.7/bin
:/usr/local/bin
:/usr/bin
:/bin
:/usr/sbin
:/sbin 
like image 780
Nikhil Bansal Avatar asked Nov 17 '25 07:11

Nikhil Bansal


2 Answers

RASA is currently incompatible with python 3.9+

I'm having python 3.10, and have to switch to python 3.8 for working with Rasa.

To save yourself time:

1. Install python 3.8

2. Create and activate virtual environment:

py -3.8 -m pip install virtualenv 
py -3.8 -m virtualenv venv
venv\Scripts\activate

3. Upgrade pip

py -3.8 -m pip install -U pip

4. Install Rasa

pip install rasa

5. Check installation

rasa -h

You should see something like:

usage: rasa [-h] [--version] {init,run,shell,train,interactive,telemetry,test,visualize,data,export,x,evaluate} ...

Rasa command line interface. Rasa allows you to build your own conversational assistants 🤖. The 'rasa' command allows
you to easily run most common commands like creating a new bot, training or evaluating models.
...
like image 141
William Le Avatar answered Nov 18 '25 21:11

William Le


I also got the similar error in ubuntu, you can try these set of command:

pip install -U pip
pip install rasa

The first command will update the python package manager and the second will install rasa. If pip install rasa is not working, then you can try pip3 install rasa

like image 21
Vishal Avatar answered Nov 18 '25 21:11

Vishal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!