# Error while finding module specification for 'rasa\_nlu.train' (ModuleNotFoundError: No module named 'rasa\_nlu')

**URL:** <https://forum.rasa.com/t/error-while-finding-module-specification-for-rasa-nlu-train-modulenotfounderror-no-module-named-rasa-nlu/2791>\
**Category:** Rasa Open Source\
**Created:** [November 19, 2018, 6:22pm UTC](https://forum.rasa.com/t/error-while-finding-module-specification-for-rasa-nlu-train-modulenotfounderror-no-module-named-rasa-nlu/2791 "2018-11-19T18:22:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Teluguntla123](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@Teluguntla123](https://forum.rasa.com/u/Teluguntla123)\
**Post date:** [November 19, 2018, 6:22pm UTC](https://forum.rasa.com/t/error-while-finding-module-specification-for-rasa-nlu-train-modulenotfounderror-no-module-named-rasa-nlu/2791/1 "2018-11-19T18:22:21Z")

</div>

I am getting an error while trying to train the data. My command: python -m rasa\_nlu.train -c nlu\_config.yml --data nlu.md -o models --fixed\_model\_name nlu --project current --verbose

Contents of nlu\_config.yml “language” : “en”

“pipeline”: “tensorflow\_embedding”

Contents of nlu.md:

## intent:greet

- hey

- hello

- hi

- good morning

- good evening

- hey there

## intent:restaurant\_search

- i’m looking for a place to eat

- I want to grab lunch

- I am searching for a dinner spot

- i’m looking for a place in the north of town

- show me chinese restaurants

- show me a mexican place in the centre

- i am looking for an indian spot

- search for restaurants

- anywhere in the west

- anywhere near 18328

- I am looking for asian fusion food

- I am looking a restaurant in 29432

## intent:thankyou

- thanks!

- thank you

- thx

- thanks very much

I request someone to help me out with this issue. Thank you

---

<div class="post-metadata">

**Author:** ![Juste](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/juste/32/15_2.png) [@Juste](https://forum.rasa.com/u/Juste)\
**Post date:** [November 22, 2018, 10:55pm UTC](https://forum.rasa.com/t/error-while-finding-module-specification-for-rasa-nlu-train-modulenotfounderror-no-module-named-rasa-nlu/2791/2 "2018-11-22T22:55:21Z")

</div>

Hey @Teluguntla123. Seems like rasa\_nlu is missing. Which python version are you using and do you have more than one python version installed on your machine? I assume you didn’t have issues installing rasa\_nlu with `pip install rasa_nlu`

---

<div class="post-metadata">

**Author:** ![Teluguntla123](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@Teluguntla123](https://forum.rasa.com/u/Teluguntla123)\
**Post date:** [November 23, 2018, 12:29am UTC](https://forum.rasa.com/t/error-while-finding-module-specification-for-rasa-nlu-train-modulenotfounderror-no-module-named-rasa-nlu/2791/3 "2018-11-23T00:29:01Z")

</div>

Thanks for your response. I am using python 3.6.4 on my machine. I have already installed **rasa\_nlu** using **pip3 install rasa\_nlu**. I don’t have any issues with rasa\_nlu. I installed rasa\_nlu and trained it with some data and tested with examples as well. I have attached some screenshot pictures in this message as a proof to show **rasa\_nlu** is perfectly trained and working absolutely fine. As a beginner in python and RASA Stack I really don’t know **rasa\_nlu** has issues in it.

 ![26%20PM](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/5/50a24fb6fa7534040aeb9ad90be799f3d6e51949.jpeg) ![35%20PM](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/7/74c5671d61ca372f95926241eb6d3ed9f6979715.png)

---

<div class="post-metadata">

**Author:** ![Mau](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@Mau](https://forum.rasa.com/u/Mau)\
**Post date:** [May 14, 2019, 4:59pm UTC](https://forum.rasa.com/t/error-while-finding-module-specification-for-rasa-nlu-train-modulenotfounderror-no-module-named-rasa-nlu/2791/4 "2019-05-14T16:59:49Z")

</div>

Had similar problem, but with “rasa\_nlu.test”.

Inspite of having:

`Name: rasa-core Version: 0.14.3`

`Name: rasa-nlu Version: 0.15.0`

It didn’t work.

So in a new virtualenv a ran these two:

```auto
pip install -U rasa_core #to update rasa_core

```

```auto
pip install rasa_nlu[tensorflow] # for use supervised_embeddings pipeline

```

Then worked like charm. Ithink my mistake was to ommit the `pip install rasa_nlu`

---

<div class="post-metadata">

**Author:** ![custodio](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/custodio/32/520_2.png) [@custodio](https://forum.rasa.com/u/custodio)\
**Post date:** [May 14, 2019, 8:14pm UTC](https://forum.rasa.com/t/error-while-finding-module-specification-for-rasa-nlu-train-modulenotfounderror-no-module-named-rasa-nlu/2791/5 "2019-05-14T20:14:40Z")

</div>

If you installed the latest version of Rasa from github. They have changed the name of the modules.

So right now, you should import as followed:

```
import rasa
from rasa.nlu.train import train

```

If you don’t want to change the imports. You might want to downgrade rasa

Regards, Leo
