second install ok
#Stop the Homeassistant service for free port 8123 (not in a Python 3.11 vEnv)
sudo systemctl stop home-assistant@homeassistant
sudo -u homeassistant -H -s
cd /srv/homeassistant
source bin/activate
pip3 install homeassistant==2023.5.4
output
(homeassistant) homeassistant@raspberrypi:/srv/homeassistant $ pip3 install homeassistant==2023.5.4
Looking in indexes: https://mirrors.aliyun.com/pypi/simple, https://www.piwheels.org/simple
Collecting homeassistant==2023.5.4
Downloading https://mirrors.aliyun.com/pypi/packages/cd/c3/db1a46937290d480c30ed8ee7c71926973c590f1afa8bd0fb7222b998ce2/homeassistant-2023.5.4-py3-none-any.whl (24.9 MB)
ββββββββββββββββββββββββββββββββββββββββ 24.9/24.9 MB 68.0 kB/s eta 0:00:00
Collecting aiohttp==3.8.4 (from homeassistant==2023.5.4)
Using cached aiohttp-3.8.4-cp311-cp311-linux_armv7l.whl
Collecting astral==2.2 (from homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/astral/astral-2.2-py2.py3-none-any.whl (30 kB)
Collecting async-timeout==4.0.2 (from homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/async-timeout/async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting attrs==22.2.0 (from homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/attrs/attrs-22.2.0-py3-none-any.whl (60 kB)
Collecting atomicwrites-homeassistant==1.4.1 (from homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/atomicwrites-homeassistant/atomicwrites_homeassistant-1.4.1-py2.py3-none-any.whl (7.1 kB)
Collecting awesomeversion==22.9.0 (from homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/awesomeversion/awesomeversion-22.9.0-py3-none-any.whl (12 kB)
Collecting bcrypt==4.0.1 (from homeassistant==2023.5.4)
Using cached bcrypt-4.0.1-cp311-cp311-linux_armv7l.whl
Collecting certifi>=2021.5.30 (from homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/certifi/certifi-2023.5.7-py3-none-any.whl (156 kB)
Collecting ciso8601==2.3.0 (from homeassistant==2023.5.4)
Using cached ciso8601-2.3.0-cp311-cp311-linux_armv7l.whl
Collecting httpx==0.24.1 (from homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/httpx/httpx-0.24.1-py3-none-any.whl (75 kB)
Collecting home-assistant-bluetooth==1.10.0 (from homeassistant==2023.5.4)
Using cached home_assistant_bluetooth-1.10.0-cp311-cp311-manylinux_2_31_armv7l.whl
Collecting ifaddr==0.1.7 (from homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/ifaddr/ifaddr-0.1.7-py2.py3-none-any.whl (10 kB)
Collecting jinja2==3.1.2 (from homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/jinja2/Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting lru-dict==1.1.8 (from homeassistant==2023.5.4)
Using cached lru_dict-1.1.8-cp311-cp311-linux_armv7l.whl
Collecting PyJWT==2.6.0 (from homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/pyjwt/PyJWT-2.6.0-py3-none-any.whl (20 kB)
Collecting cryptography==40.0.2 (from homeassistant==2023.5.4)
Using cached https://mirrors.aliyun.com/pypi/packages/f7/80/04cc7637238b78f8e7354900817135c5a23cf66dfb3f3a216c6d630d6833/cryptography-40.0.2.tar.gz (625 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting pyOpenSSL==23.1.0 (from homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/pyopenssl/pyOpenSSL-23.1.0-py3-none-any.whl (57 kB)
Collecting orjson==3.8.10 (from homeassistant==2023.5.4)
Using cached https://mirrors.aliyun.com/pypi/packages/56/f2/86cd00c33d468ba74427b91bc41a8d050064f5b5b8ac8f5e9a39a0965ace/orjson-3.8.10-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (147 kB)
Requirement already satisfied: pip<23.2,>=21.0 in ./lib/python3.11/site-packages (from homeassistant==2023.5.4) (23.1.2)
Collecting python-slugify==4.0.1 (from homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/python-slugify/python_slugify-4.0.1-py2.py3-none-any.whl (7.0 kB)
Collecting pyyaml==6.0 (from homeassistant==2023.5.4)
Using cached PyYAML-6.0-cp311-cp311-linux_armv7l.whl
Collecting requests==2.28.2 (from homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/requests/requests-2.28.2-py3-none-any.whl (62 kB)
Collecting typing-extensions<5.0,>=4.5.0 (from homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/typing-extensions/typing_extensions-4.6.3-py3-none-any.whl (31 kB)
Collecting ulid-transform==0.7.2 (from homeassistant==2023.5.4)
Using cached ulid_transform-0.7.2-cp311-cp311-manylinux_2_31_armv7l.whl
Collecting voluptuous==0.13.1 (from homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/voluptuous/voluptuous-0.13.1-py3-none-any.whl (35 kB)
Collecting voluptuous-serialize==2.6.0 (from homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/voluptuous-serialize/voluptuous_serialize-2.6.0-py3-none-any.whl (6.8 kB)
Collecting yarl==1.9.2 (from homeassistant==2023.5.4)
Using cached yarl-1.9.2-cp311-cp311-linux_armv7l.whl
Collecting charset-normalizer<4.0,>=2.0 (from aiohttp==3.8.4->homeassistant==2023.5.4)
Using cached https://mirrors.aliyun.com/pypi/packages/ef/81/14b3b8f01ddaddad6cdec97f2f599aa2fa466bd5ee9af99b08b7713ccd29/charset_normalizer-3.1.0-py3-none-any.whl (46 kB)
Collecting multidict<7.0,>=4.5 (from aiohttp==3.8.4->homeassistant==2023.5.4)
Using cached multidict-6.0.4-cp311-cp311-linux_armv7l.whl
Collecting frozenlist>=1.1.1 (from aiohttp==3.8.4->homeassistant==2023.5.4)
Using cached frozenlist-1.3.3-cp311-cp311-linux_armv7l.whl
Collecting aiosignal>=1.1.2 (from aiohttp==3.8.4->homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/aiosignal/aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting pytz (from astral==2.2->homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/pytz/pytz-2023.3-py3-none-any.whl (502 kB)
Requirement already satisfied: cffi>=1.12 in ./lib/python3.11/site-packages (from cryptography==40.0.2->homeassistant==2023.5.4) (1.15.1)
Collecting httpcore<0.18.0,>=0.15.0 (from httpx==0.24.1->homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/httpcore/httpcore-0.17.2-py3-none-any.whl (72 kB)
Collecting idna (from httpx==0.24.1->homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/idna/idna-3.4-py3-none-any.whl (61 kB)
Collecting sniffio (from httpx==0.24.1->homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/sniffio/sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting MarkupSafe>=2.0 (from jinja2==3.1.2->homeassistant==2023.5.4)
Using cached MarkupSafe-2.1.2-cp311-cp311-linux_armv7l.whl
Collecting text-unidecode>=1.3 (from python-slugify==4.0.1->homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/text-unidecode/text_unidecode-1.3-py2.py3-none-any.whl (78 kB)
Collecting urllib3<1.27,>=1.21.1 (from requests==2.28.2->homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/urllib3/urllib3-1.26.16-py2.py3-none-any.whl (143 kB)
Requirement already satisfied: pycparser in ./lib/python3.11/site-packages (from cffi>=1.12->cryptography==40.0.2->homeassistant==2023.5.4) (2.21)
Collecting h11<0.15,>=0.13 (from httpcore<0.18.0,>=0.15.0->httpx==0.24.1->homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/h11/h11-0.14.0-py3-none-any.whl (58 kB)
Collecting anyio<5.0,>=3.0 (from httpcore<0.18.0,>=0.15.0->httpx==0.24.1->homeassistant==2023.5.4)
Using cached https://www.piwheels.org/simple/anyio/anyio-3.7.0-py3-none-any.whl (80 kB)
Building wheels for collected packages: cryptography
Building wheel for cryptography (pyproject.toml) ... done
Created wheel for cryptography: filename=cryptography-40.0.2-cp311-cp311-linux_armv7l.whl size=1507596 sha256=2a240b5125a4ddecd482a395c3c74394d33db01d9b418101c907bef468aa567b
Stored in directory: /home/homeassistant20230504/.cache/pip/wheels/36/f9/59/9f51a819e2722356285f35987d7fffca5b57b7c04b7fc06da2
Successfully built cryptography
Installing collected packages: voluptuous, text-unidecode, pytz, lru-dict, ifaddr, ciso8601, voluptuous-serialize, urllib3, ulid-transform, typing-extensions, sniffio, pyyaml, python-slugify, PyJWT, orjson, multidict, MarkupSafe, idna, home-assistant-bluetooth, h11, frozenlist, charset-normalizer, certifi, bcrypt, awesomeversion, attrs, atomicwrites-homeassistant, async-timeout, astral, yarl, requests, jinja2, cryptography, anyio, aiosignal, pyOpenSSL, httpcore, aiohttp, httpx, homeassistant
Attempting uninstall: cryptography
Found existing installation: cryptography 41.0.1
Uninstalling cryptography-41.0.1:
Successfully uninstalled cryptography-41.0.1
Successfully installed MarkupSafe-2.1.2 PyJWT-2.6.0 aiohttp-3.8.4 aiosignal-1.3.1 anyio-3.7.0 astral-2.2 async-timeout-4.0.2 atomicwrites-homeassistant-1.4.1 attrs-22.2.0 awesomeversion-22.9.0 bcrypt-4.0.1 certifi-2023.5.7 charset-normalizer-3.1.0 ciso8601-2.3.0 cryptography-40.0.2 frozenlist-1.3.3 h11-0.14.0 home-assistant-bluetooth-1.10.0 homeassistant-2023.5.4 httpcore-0.17.2 httpx-0.24.1 idna-3.4 ifaddr-0.1.7 jinja2-3.1.2 lru-dict-1.1.8 multidict-6.0.4 orjson-3.8.10 pyOpenSSL-23.1.0 python-slugify-4.0.1 pytz-2023.3 pyyaml-6.0 requests-2.28.2 sniffio-1.3.0 text-unidecode-1.3 typing-extensions-4.6.3 ulid-transform-0.7.2 urllib3-1.26.16 voluptuous-0.13.1 voluptuous-serialize-2.6.0 yarl-1.9.2