[solved + howto install python 3.10] Python 3.10 on HA Core: stuck on libpython

I’m aware it’s not supported but I’ll try anyway and hope to get an answer here.

I have installed 2022.7.0 without a problem, still running Python 3.9.9.
Since I saw in the release notes that Python 3.10 is a step forward, I’m trying to get that version on my system but it fails.

I’m using this guide: Tinkering with Home Automation: Upgrading the Python Virtual Environment (of course with version v3.10.5)
The problem seems to be related to libpython: I get an error stating that it’s not present.

I have searched around but did not find a way to solve this.
Any help is highly appreciated!

Where did you read this?
This might not help you with your problem, but i also run Core on python 3.9.2 (debian 11 default) without any problem.
Let’s sit an wait! :crossed_fingers:

I really was under the impression that Core was not supported and therefor discouraged to use…

My attention was drawn to the speed improvement with Python 3.10.

I updated python/venv today, without issues.
There was a custom_component with problems in 3.9

1 Like

Hi VDRainer, I gave it a go and successfully installed v3.10.
Do I need to do the step ’ Install Python Modules|Extensions on Debian 11|10’?

I did this on my running HA system, after a backup, but I’m a little puzzled about these virtual environments: do I just create a new virtual environment ?aside? of the existing one and will this be a complete new HA setup (just as if I started from scratch) so what about my current config?

Thanks a lot for helping!

Yes

  • Stop HA
  • rename the venv folder
  • create a new folder with the old name
  • create a new venv with python 3.10 in that folder
  • activate that venv
  • install HA in it
  • Start HA
1 Like

Hi VDRainer, in the meantime python is on v3.12
Is there any advantage to use that version or best to stay with v3.10?