To install a GitHub Pull Request:

python -m pip install git+ssh://git@github.com/{org-or-username}/{repo}.git@refs/pull/{ID}/head#egg={package-name}

Example:

python -m pip install git+ssh://git@github.com/huggingface/datasets.git@refs/pull/2324/head#egg=datasets