Tensorflow-addons

hey @rasa_newbie, try installing rasa using below command:

pip3 install --upgrade tensorflow-addons rasa

I got the same problem when I used Python 3.7.5 and 3.8.0 on Ubuntu 18.04.4 but pip install rasa worked fine when I used Python 3.6.9.

virtualenv -ppython3.6 venv
. venv/bin/activate
pip install rasa

Hello All,

Newbie in Rasa and tried to install it to give it a try. Now I have spent more than half a day and looking for solution. Unfortunately none of the above solution worked for me. Below is my case:

  1. OS: Ubuntu 18.04
  2. Python 3.6.9 (Installed 3.8, then downgraded to 3.7 and now to 3.6)
  3. pip-20.0.2
  4. pip3 --version (pip3 --version pip 20.0.2 from /home/ubuntu/rasa_project/venv/lib/python3.6/site-packages/pip (python 3.6))
  5. venv running with Python 3.6.9

No matter if I use ‘pip install rasa’ or ‘pip3 install rasa’ or ‘pip install rasa==1.8.1’ or ‘pip install rasa==1.7’ or ‘pip install rasa [spacy]’ - it always throws the same error.

I tried to go through several discussion forums of Rasa and Github. Upgraded and downgraded several times python, pip, setuptools, wheel etc. but of no use. Even tried to install tensorflow 2.2.0rc1 (got this error couple of times) but got stuck with tensorflow-addon requirement. Apparently no pip command can install tensorflow-addons compatible with tensorflow build.

Provided full user ownsership and permission to venv but still of no use.

Any help would be highly appreciated.

Thank you.

It worked for me, Thanks!

hi , I am seeing same error. ERROR: Could not find a version that satisfies the requirement tensorflow<2.2,>=2.1 (from rasa) (from versions: 2.2.0rc1, 2.2.0rc2) ERROR: No matching distribution found for tensorflow<2.2,>=2.1 (from rasa) Initially i was working with python3.8.2, i then tried out solutions mentioned in this thread.

  1. using python 3.7.3 and 3.6.5
  2. installing tensorflow addons
  3. using tensorflow-rasa instead. All the above lead to same issue. Kindly help get past this.Appreciate the help!

Regards, Arushi

Hi there!

I had a similar issue: ERROR: Could not find a version that satisfies the requirement tensorflow<2.2,>=2.1 (from rasa) (from versions: 2.2.0rc1, 2.2.0rc2) ERROR: No matching distribution found for tensorflow<2.2,>=2.1 (from rasa)

Following seems to have worked for me:

  1. conda create -n myenv python=3.7
  2. conda activate p37rasa4mc
  3. pip install rasa

My configuration:

  • Windows 10
  • Anaconda Distribution: Anaconda3-2020.02-Windows-x86_64.exe
  • Pyhon: 3.7.7 (After setting up and activating the conda enviroment)
  • Tipp: Install everything you need with conda or the Anaconda Navigator in your enviroment before using pip.

Same problem: OSX 10.15.4, python 3.7.5; rasa 1.9.5 used the ‘short answer’ pipeline from Tuning Your NLU Model

‘rasa train’ coughed up “Exception: Not all required importable packages are installed. To use this pipeline, you need to install the missing dependencies. Please install the package(s) that contain the module(s): tensorflow_text”

googling suggested docs from an old version: https://rasa.com/docs/rasa/1.7.3/nlu/choosing-a-pipeline/

which had a note: " To use pretrained_embeddings_convert pipeline, you should install tensorflow-text==1.15.1 and tensorflow-hub==0.6.0 . Otherwise, you can also pip install Rasa with pip install rasa[convert] . Please also note that tensorflow-text is only currently supported on Linux platforms."

tried ‘pip install rasa[convert]’

and was able to train without the tensorflow error.

rasa upgrades are decidedly challenging.

Same problem.

OS : Ubuntu 18.04 Python : Python 3.8.2 commands that don’t work :

$ pip install rasa $ pip3 install rasa $ pip3 install --upgrade tensorflow-addons rasa

Error :

ERROR: Could not find a version that satisfies the requirement tensorflow-addons>=0.7.1 (from rasa) (from versions: none) ERROR: No matching distribution found for tensorflow-addons>=0.7.1 (from rasa)

Anything happening in this direction anymore ?

thanks. your solution worked for me.

Try creating a virtual environment using python =< 3.6.8:

  1. Download and install python 3.6.8 (Python Release Python 3.6.8 | Python.org)

  2. Create a virtual environment using the new python version: virtualenv -p 3.6.8 rasaenv

  3. Install rasa: pip install rasa

Cheers

3 Likes

This worked for me. Thanks

Using Windows 10, solved it here by downgrading to Python 3.6.8 x64, and following the tutorial commands.

Updating PIP might solve this issue

@vimal Yes this worked for me. I also had a similar error

When i read through other issue posts regarding tensorflow-addons i found out that latest versions of tensorflow won’t be installed correctly if you don’t have the latest version of pip. So i updated my pip from 9.0.1 to 20.2.1 and it worked. FYI the following command to update pip:

python -m pip install -U pip

Hi, I am also completely new to rasa and to Python. I got the same error, => installed the latest version of python with “pip install --upgrade pip” => download of rasa continued for a couple of minutes but ended with same error message. Any further ideas?

It only works if you install rasa 2.0.0a1. The 1.x series has no fix for python 3.8/TF 2.2

thank you, @pgdev , I have now set up a virtual environment and installed py 3.7 and it worked. I still got a few error and warning messages, but it seems to run fine… going through the masterclass now and setting up the first bot :slight_smile:

I got same problem on MacOS 10.12. Problem solved when update to MacOS 10.14.6

Thanks. This worked for me too.

On Ubuntu 20.04 with Python 3.8(.2) use the rasa 2.x

pip install gast==0.3.3 cloudpickle==1.3 numpy==1.18.5
pip install rasa==2.0.0rc2