# Python error when starting Mopidy on Raspberry Pi

**URL:** <https://discourse.mopidy.com/t/python-error-when-starting-mopidy-on-raspberry-pi/869>\
**Category:** Misc\
**Created:** [September 9, 2015, 5:39pm UTC](https://discourse.mopidy.com/t/python-error-when-starting-mopidy-on-raspberry-pi/869 "2015-09-09T17:39:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gilbert\_Holland\_Lloy](https://avatars.discourse-cdn.com/v4/letter/g/ce7236/32.png) [@Gilbert\_Holland\_Lloy](https://discourse.mopidy.com/u/Gilbert_Holland_Lloy)\
**Post date:** [September 9, 2015, 5:39pm UTC](https://discourse.mopidy.com/t/python-error-when-starting-mopidy-on-raspberry-pi/869/1 "2015-09-09T17:39:31Z")

</div>

Whenever I try to start running mopidy on my raspberry pi, I get the following error:

```
ERROR: Mopidy requires Python 2.7, but found 3.2.3.

```

Yet when I run `python --version` I get the following result `Python 2.7.3`

What’s going on here?

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2564_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [September 9, 2015, 8:44pm UTC](https://discourse.mopidy.com/t/python-error-when-starting-mopidy-on-raspberry-pi/869/2 "2015-09-09T20:44:25Z")

</div>

I’m guessing that you used pip to install Mopidy? And that pip use Python 3, thus it installed Mopidy into your Python 3’s site-packages directory.

If you run `pip --version`, it will show you what Python version that pip executable belongs to. For example:

```auto
$ pip --version                                                          
pip 1.5.6 from /usr/lib/python2.7/dist-packages (python 2.7)

```

If this says anything else than “(python 2.7)” you should uninstall Mopidy:

```auto
pip uninstall mopidy

```

And then reinstall using the pip executable matching your python2.7 installation, or using some alternative installation method, like apt-get. Often, you’ll have `pip2` and `pip3` commands which install’s into your `python2`'s and `python3`'s site-packages, respectively.

---

<div class="post-metadata">

**Author:** ![Gilbert\_Holland\_Lloy](https://avatars.discourse-cdn.com/v4/letter/g/ce7236/32.png) [@Gilbert\_Holland\_Lloy](https://discourse.mopidy.com/u/Gilbert_Holland_Lloy)\
**Post date:** [September 9, 2015, 9:11pm UTC](https://discourse.mopidy.com/t/python-error-when-starting-mopidy-on-raspberry-pi/869/3 "2015-09-09T21:11:53Z")

</div>

Thank you very much, I stupidly installed something with pip-3.2.

Thank you again for clearing that up!
