# Using Python3

**URL:** <https://discourse.beets.io/t/using-python3/755>\
**Category:** Help\
**Created:** [May 17, 2019, 1:24am UTC](https://discourse.beets.io/t/using-python3/755 "2019-05-17T01:24:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![apastuszak](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@apastuszak](https://discourse.beets.io/u/apastuszak)\
**Post date:** [May 17, 2019, 1:24am UTC](https://discourse.beets.io/t/using-python3/755/1 "2019-05-17T01:24:50Z")

</div>

How can I get beets to use python3, if I have both python2 and python3 installed on Ubuntu 18.04?

---

<div class="post-metadata">

**Author:** ![arcresu](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/arcresu/32/222_2.png) [@arcresu](https://discourse.beets.io/u/arcresu)\
**Post date:** [May 17, 2019, 1:41am UTC](https://discourse.beets.io/t/using-python3/755/2 "2019-05-17T01:41:05Z")

</div>

Beets will normally pick up whichever version of Python is `python` in your path. This is normally Python 2. If you want to invoke it using a specific Python interpreter you can do something like `/usr/bin/python3 ./beet` to invoke beets (assuming you’re in the directory where the beet executable is installed).

On Debian–and so presumably also on Ubuntu–if you’re using the beets deb package from the distro then this uses Python 3 anyway (`/usr/bin/beet` is installed to invoke beets with Python 3).

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [May 17, 2019, 1:41am UTC](https://discourse.beets.io/t/using-python3/755/3 "2019-05-17T01:41:05Z")

</div>

You probably have a `pip3` executable (or if you don’t, you’ll want to obtain one!). Use `pip3 install --user beets` or similar to install beets using Python 3.

---

<div class="post-metadata">

**Author:** ![apastuszak](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@apastuszak](https://discourse.beets.io/u/apastuszak)\
**Post date:** [May 17, 2019, 2:08am UTC](https://discourse.beets.io/t/using-python3/755/4 "2019-05-17T02:08:59Z")

</div>

I live on the bleeding edge. I use pip to install beets.

---

<div class="post-metadata">

**Author:** ![apastuszak](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@apastuszak](https://discourse.beets.io/u/apastuszak)\
**Post date:** [May 17, 2019, 2:20am UTC](https://discourse.beets.io/t/using-python3/755/5 "2019-05-17T02:20:02Z")

</div>

I decided to force the issue. I installed pip3:

`sudo apt install python3-pip`

And then I installed beets using:

`sudo beet install --upgrade beets`

When I run beets I now get

```
xxxx@ubuntu-server:~$ beet --version
** error loading plugin chroma:
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/dist-packages/beets/plugins.py", line 273, in load_plugins
    namespace = __import__ (modname, None, None)
  File "/usr/local/lib/python3.6/dist-packages/beetsplug/chroma.py", line 27, in <module>
    import acoustid
ModuleNotFoundError: No module named 'acoustid'

beets version 1.4.8
Python version 3.6.7
plugins: convert, duplicates, embedart, export, fetchart, ftintitle, hook, info, inline, lastgenre, lyrics, replaygain, rewrite, scrub, web

```

When I do a sudo pip3 install acoustid, I get this:

```
Collecting acoustid
  Could not find a version that satisfies the requirement acoustid (from versions: )
No matching distribution found for acoustid

```

So I’m going to guess that acoustid has not been ported to python3.

---

<div class="post-metadata">

**Author:** ![apastuszak](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@apastuszak](https://discourse.beets.io/u/apastuszak)\
**Post date:** [May 17, 2019, 2:21am UTC](https://discourse.beets.io/t/using-python3/755/6 "2019-05-17T02:21:32Z")

</div>

Ok, never mind. The package is pyacoustid. I’m good now.
