In Ubuntu 23.04+, pip install won't work anymore: see this article. You'll need to run this instead:
pip install
sudo apt install python3-git