Rasa Installation Failed!

I am trying to install rasa on macOS. I created a virtual python environment using pyenv virtualenv 3.7.3. and installed tensor flow using pipenv. after that I tried installing rasa but I am getting error. I also tried tensor flow 2.1.1 still gets the same error !

~/Desktop/rasa_chatbot > pipenv run pip freeze tensorflow                                                                                                           
absl-py==0.9.0
astunparse==1.6.3
cachetools==4.1.1
certifi==2020.6.20
chardet==3.0.4
gast==0.3.3
google-auth==1.20.0
google-auth-oauthlib==0.4.1
google-pasta==0.2.0
grpcio==1.30.0
h5py==2.10.0
idna==2.10
Keras-Preprocessing==1.1.2
Markdown==3.2.2
numpy==1.18.5
oauthlib==3.1.0
opt-einsum==3.3.0
protobuf==3.12.4
pyasn1==0.4.8
pyasn1-modules==0.2.8
requests==2.24.0
requests-oauthlib==1.3.0
rsa==4.6
scipy==1.4.1
six==1.15.0
tensorboard==2.3.0
tensorboard-plugin-wit==1.7.0
**tensorflow==2.3.0**
tensorflow-estimator==2.3.0
termcolor==1.1.0
urllib3==1.25.10
Werkzeug==1.0.1
wrapt==1.12.1

~/Desktop/rasa_chatbot > pipenv install rasa                                                                                                                          Installing rasa…
Error:  An error occurred while installing rasa!
Error text: Collecting rasa
  Using cached rasa-1.10.2-py3-none-any.whl (510 kB)
Collecting python-dateutil<2.9,>=2.8
  Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting SQLAlchemy<1.4.0,>=1.3.3
  Using cached SQLAlchemy-1.3.18-cp38-cp38-macosx_10_14_x86_64.whl (1.2 MB)
Collecting pytz<2020.0,>=2019.1
  Using cached pytz-2019.3-py2.py3-none-any.whl (509 kB)
Collecting psycopg2-binary<2.9.0,>=2.8.2
  Downloading psycopg2_binary-2.8.5-cp38-cp38-macosx_10_9_x86_64.macosx_10_9_intel.macosx_10_10_intel.macosx_10_10_x86_64.whl (1.5 MB)
Collecting matplotlib<3.3,>=3.1
  Using cached matplotlib-3.2.2-cp38-cp38-macosx_10_9_x86_64.whl (12.5 MB)
Collecting packaging<21.0,>=20.0
  Using cached packaging-20.4-py2.py3-none-any.whl (37 kB)
Collecting pydot<1.5,>=1.4
  Using cached pydot-1.4.1-py2.py3-none-any.whl (19 kB)
Collecting kafka-python<2.0,>=1.4
  Using cached kafka_python-1.4.7-py2.py3-none-any.whl (266 kB)
Collecting cloudpickle<1.4,>=1.2
  Using cached cloudpickle-1.3.0-py2.py3-none-any.whl (26 kB)
Collecting gevent<1.6,>=1.4
  Downloading gevent-1.5.0-cp38-cp38-macosx_10_9_x86_64.whl (1.8 MB)
Collecting prompt-toolkit<3.0,>=2.0
  Downloading prompt_toolkit-2.0.10-py3-none-any.whl (340 kB)
Collecting twilio<6.27,>=6.26
  Downloading twilio-6.26.3-py2.py3-none-any.whl (979 kB)
Collecting sanic-cors<0.11.0,>=0.10.0b1
  Using cached Sanic_Cors-0.10.0.post3-py2.py3-none-any.whl (17 kB)
Collecting slackclient<3.0.0,>=2.0.0
  Using cached slackclient-2.7.3-py2.py3-none-any.whl (71 kB)
Requirement already satisfied, skipping upgrade: requests<3.0,>=2.23 in /Users/wanderer/.local/share/virtualenvs/rasa_chatbot-I7oWebci/lib/python3.8/site-packages (from rasa->-r /var/folders/rw/mjkl7v_97r7772xkgrf46ypc0000gn/T/pipenv-l9u2w4c0-requirements/pipenv-qiskh_qv-requirement.txt (line 1)) (2.24.0)
Collecting aiohttp<3.7,>=3.6
  Using cached aiohttp-3.6.2-py3-none-any.whl (441 kB)
Collecting mattermostwrapper<2.3,>=2.2
  Using cached mattermostwrapper-2.2.tar.gz (2.5 kB)
Collecting pymongo[srv,tls]<3.9.0,>=3.8.0
  Downloading pymongo-3.8.0.tar.gz (649 kB)
Requirement already satisfied, skipping upgrade: scipy<2.0.0,>=1.4.1 in /Users/wanderer/.local/share/virtualenvs/rasa_chatbot-I7oWebci/lib/python3.8/site-packages (from rasa->-r /var/folders/rw/mjkl7v_97r7772xkgrf46ypc0000gn/T/pipenv-l9u2w4c0-requirements/pipenv-qiskh_qv-requirement.txt (line 1)) (1.4.1)

ERROR: Could not find a version that satisfies the requirement tensorflow<2.2,>=2.1 (from rasa->-r /var/folders/rw/mjkl7v_97r7772xkgrf46ypc0000gn/T/pipenv-l9u2w4c0-requirements/pipenv-qiskh_qv-requirement.txt (line 1)) (from versions: 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0)

ERROR: No matching distribution found for tensorflow<2.2,>=2.1 (from rasa->-r /var/folders/rw/mjkl7v_97r7772xkgrf46ypc0000gn/T/pipenv-l9u2w4c0-requirements/pipenv-qiskh_qv-requirement.txt (line 1))

✘ Installation Failed

If you are using Mac then first activate the virtual environment

  • python3 -m vena /path/to/directory/name of environment

  • source name of environment/bin/activate

Now you have entered in the environment now try installing rasa and rasa x using this command

I was trying to install rasa in virtualenv only. :neutral_face:

did you try pip3 install rasa

yes

can you share the error with a Screen shot

I have attached above

try to change the version of tensorflow to pip3 install tensorflow==1.8.0

if this doesn’t help then you can uninstall tensorflow and try install pip3 install rasa this will install all the dependencies. revert if this helps

hey thanks for your time man. I tried after upgrading pip now the rasa got installed but I its telling:

tensorflow 2.1.1 has requirement scipy==1.4.1; python_version >= “3”, but you’ll have scipy 1.5.2 which is incompatible.

Yes that is ok about the scipy that is just a warning ignore it… Enjoy exploring and developing in rasa. Just give a shoutout about the issue being resolved. Happy to help :wink:

thanks . This warning also got resolved, after upgrading pip3 I uninstalled and again install tensor flow.then I installed rasa.

1 Like