# SOLVED - Updating Pylast to Python 3

**URL:** <https://discourse.beets.io/t/solved-updating-pylast-to-python-3/811>\
**Category:** Help\
**Created:** [June 21, 2019, 2:52pm UTC](https://discourse.beets.io/t/solved-updating-pylast-to-python-3/811 "2019-06-21T14:52:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Baanaaanaas](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@Baanaaanaas](https://discourse.beets.io/u/Baanaaanaas)\
**Post date:** [June 21, 2019, 2:52pm UTC](https://discourse.beets.io/t/solved-updating-pylast-to-python-3/811/1 "2019-06-21T14:52:50Z")

</div>

Hello guys,

First thank Beets devs and contributors for everything. You are GREAT.

Anyway, when I import my music album using Beets, it keeps telling me: /home/user/.local/lib/python2.7/site-packages/pylast/ **init**.py:51: UserWarning: You are using pylast with Python 2. Pylast will soon be Python 3 only. More info: [https://github.com/pylast/pylast/issues/265](https://github.com/pylast/pylast/issues/265)

I don’t know nothing about Python, but I’ve been lookin on the github and other forum, and I could not find a way to proceed the updating.

Could someone have an answer?  
I’m using Ubuntu 18.04.

Thank you really much

---

<div class="post-metadata">

**Author:** ![Baanaaanaas](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@Baanaaanaas](https://discourse.beets.io/u/Baanaaanaas)\
**Post date:** [June 21, 2019, 3:07pm UTC](https://discourse.beets.io/t/solved-updating-pylast-to-python-3/811/2 "2019-06-21T15:07:10Z")

</div>

Have been following the following apastuszak’s solution: [Using Python3](https://discourse.beets.io/t/using-python3/755/6)

But it’s the same message again.

---

<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:** [June 21, 2019, 4:51pm UTC](https://discourse.beets.io/t/solved-updating-pylast-to-python-3/811/3 "2019-06-21T16:51:42Z")

</div>

Indeed! Upgrade to Python 3; that’s the thing to do. You probably need to uninstall beets on Python 2 first.

---

<div class="post-metadata">

**Author:** ![Baanaaanaas](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@Baanaaanaas](https://discourse.beets.io/u/Baanaaanaas)\
**Post date:** [June 21, 2019, 4:59pm UTC](https://discourse.beets.io/t/solved-updating-pylast-to-python-3/811/4 "2019-06-21T16:59:29Z")

</div>

Thank you Adrian.

Would you, please, be nice and tell me how to do those two steps?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Baanaaanaas](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@Baanaaanaas](https://discourse.beets.io/u/Baanaaanaas)\
**Post date:** [June 21, 2019, 5:05pm UTC](https://discourse.beets.io/t/solved-updating-pylast-to-python-3/811/5 "2019-06-21T17:05:28Z")

</div>

Been doing what you indicate in this post: [Moving Beets from Python 2.7 to 3.7.1 on MacOS](https://discourse.beets.io/t/moving-beets-from-python-2-7-to-3-7-1-on-macos/533)

_`pip uninstall beets` to remove the version from the Python 2 installation before doing `pip3 install beets`_

---

<div class="post-metadata">

**Author:** ![Baanaaanaas](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@Baanaaanaas](https://discourse.beets.io/u/Baanaaanaas)\
**Post date:** [June 21, 2019, 5:07pm UTC](https://discourse.beets.io/t/solved-updating-pylast-to-python-3/811/6 "2019-06-21T17:07:19Z")

</div>

Still getting

"/home/cyril/.local/lib/python2.7/site-packages/pylast/ **init**.py:51: UserWarning: You are using pylast with Python 2. Pylast will soon be Python 3 only. More info: [https://github.com/pylast/pylast/issues/265](https://github.com/pylast/pylast/issues/265)  
UserWarning,  
"

---

<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:** [June 21, 2019, 5:27pm UTC](https://discourse.beets.io/t/solved-updating-pylast-to-python-3/811/7 "2019-06-21T17:27:49Z")

</div>

That means the Python 2 version did not uninstall correctly. I don’t have specific ideas for how to solve it, but googling information about how to uninstall Python libraries might help.

---

<div class="post-metadata">

**Author:** ![Baanaaanaas](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@Baanaaanaas](https://discourse.beets.io/u/Baanaaanaas)\
**Post date:** [June 21, 2019, 6:16pm UTC](https://discourse.beets.io/t/solved-updating-pylast-to-python-3/811/8 "2019-06-21T18:16:17Z")

</div>

QUESTION SOLVED

I don’t have this message anymore. Here is what I did:

1 - Install Python 3 --\> [https://linuxize.com/post/how-to-install-python-3-7-on-ubuntu-18-04/](https://linuxize.com/post/how-to-install-python-3-7-on-ubuntu-18-04/)  
2 - Chose the Python version default --\> [https://askubuntu.com/questions/1122138/how-to-remove-python-2-7-15rc1-in-ubuntu-18-04/1122140](https://askubuntu.com/questions/1122138/how-to-remove-python-2-7-15rc1-in-ubuntu-18-04/1122140)

Thanks a lot!
