# Rasa 3 - Cannot install - pip - sanic

**URL:** <https://forum.rasa.com/t/rasa-3-cannot-install-pip-sanic/50931>\
**Category:** Rasa Open Source\
**Created:** [January 27, 2022, 2:08pm UTC](https://forum.rasa.com/t/rasa-3-cannot-install-pip-sanic/50931 "2022-01-27T14:08:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![annaf](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@annaf](https://forum.rasa.com/u/annaf)\
**Post date:** [January 27, 2022, 2:08pm UTC](https://forum.rasa.com/t/rasa-3-cannot-install-pip-sanic/50931/1 "2022-01-27T14:08:23Z")

</div>

Hi,

I have recently tried to move from Rasa 2 to Rasa 3.

With my pip version 21.2.2, installation takes forever (more than 5 hours), and ultimately fails. I have tried several different python version (3.7, 3.8, 3.9) in separate anaconda environments and get the same problem every time.

Now I have also seen that installing Rasa 2.8 takes quite some time with this pip version. However, for Rasa 2.8 it works to just downgrade pip to 20.2. If I do the same for Rasa 3, I get the following errors:

```auto
sanic-plugin-toolkit 1.2.1 requires sanic<21.12.0,>=21.3.1, but you'll have sanic 21.12.1 which is incompatible.
sanic 21.12.1 requires multidict<6.0,>=5.0, but you'll have multidict 6.0.2 which is incompatible.

```

While rasa 3.0.5 shows up as being installed when I type “conda list”, just getting the rasa version in the anaconda terminal fails:

`ImportError: cannot import name 'CompositionView' from 'sanic.views' (c:\users\annaf\anaconda3\envs\rasa3-pip\lib\site-packages\sanic\views.py)`

So now while I would like to move to Rasa 3, I do not see any way to do that.

It would be great if you could help me!

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [January 27, 2022, 2:58pm UTC](https://forum.rasa.com/t/rasa-3-cannot-install-pip-sanic/50931/2 "2022-01-27T14:58:53Z")

</div>

@annaf Can you tell which machine/os you are working? Please if you can share rasa --version ?

> [@annaf](#):
>
> ImportError: cannot import name ‘CompositionView’ from ‘sanic.views’ (c:\users\annaf\anaconda3\envs\rasa3-pip\lib\site-packages\sanic\views.py)

Try downgrade sanic version, `sanic==21.9.3` [for rasa 3.x]

I hope this will solve both of your errors? If not please update me.

---

<div class="post-metadata">

**Author:** ![annaf](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@annaf](https://forum.rasa.com/u/annaf)\
**Post date:** [January 27, 2022, 3:44pm UTC](https://forum.rasa.com/t/rasa-3-cannot-install-pip-sanic/50931/3 "2022-01-27T15:44:05Z")

</div>

@nik202 Ah it worked!

I typed the following in my anaconda environment as you suggested:

`python -m pip install --upgrade sanic==21.9.3`

And now when I type `rasa --version` I no longer get the error I had earlier and indeed get the version:

```auto
Rasa Version : 3.0.5
Minimum Compatible Version: 3.0.0
Rasa SDK Version : 3.0.4
Rasa X Version : None
Python Version : 3.8.12

```

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [January 27, 2022, 4:03pm UTC](https://forum.rasa.com/t/rasa-3-cannot-install-pip-sanic/50931/4 "2022-01-27T16:03:18Z")

</div>

@annaf Good!. Can I request you to close this thread as solution for other. Thanks and good luck!
