If you are using uv for package management, then you may use the following command as well:
!uv pip install transformers