Python 3.11 is not available as apt package on debian raspbian bullseye so installing from source needed
updatepython2v11.sh can be used to compile python 3.11 on raspberry pi
installing packages like bcrypt and cryptography needs rust compiling so rust compiler needed if you don't do that you will get error liek this:
Building wheels for collected packages: bcrypt