pip install --no-index --find-links /home/admin/pyvmomi/ --force-reinstall -v "pyvmomi>=7.0.2" --break-system-packages
(As you can see, I am on an airgapped system and saved the offline packagse in /home/admin/pyvmomi, you should be able to drop the part if you are online)
copy the installed files from the python3.11 packages to the python3 packages. It might only work if a specific python verison is installed because the "python3" apt package is "more managed" (?). In this case install "apt install python3.11" or the equivalent newest python verison.
cp -r /usr/local/lib/python3.11/dist-packages/pyVim /usr/lib/python3/dist-packages/
cp -r /usr/local/lib/python3.11/dist-packages/pyVmomi /usr/lib/python3/dist-packages/
cp -r /usr/local/lib/python3.11/dist-packages/pyvmomi-8.0.2.0.1.dist-info /usr/lib/python3/dist-packages/