Tensorflow problem for RASA NLU on Python 2.7

rasa-nlu

(Joe Wong) #1

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.


(Michael Scott) #2

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


(Akshit) #3

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.


(Michael Scott) #4

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