Tensorflow problem for RASA NLU on Python 2.7

I’m using Python2.7 on a Centos 6 machine. I followed the instruction here: [Installation] to install rasa_nlu. Then I wanted to install tensorflow using this command:

pip install rasa_nlu[tensorflow]

It seemed tensorflow had been installed as it showed:

Requirement already satisfied: tensorflow in /usr/local/lib/python2.7/site-packages (from rasa_nlu[tensorflow]) (0.12.0)

But when I wanted to train a model using command from the Getting Started page, I got an error:

Exception: Not all required packages are installed. To use this pipeline, you need to install the missing dependencies. Please install tensorflow

What’s wrong here? Am I doing something wrong? Appreciated in advance.

I am having the same issue. I will let you know if I find a solution.

I also had lot of issues when I was starting with python 2.7 . Is it mandatory for you to use python27? It’s bound to give you problems in the long run anyway. I would recommend you to upgrade to any python3+ and continue.

My issue was that I was using Python 3.7. Tensorflow does not yet work with this version of python. I downgraded to Python 3.6, re-installed everything and it works fine. I would try it with 3.6