httpx[http2]
just adds the h2
package try adding it manually by :
python3 -m pip install --user httpx h2
and i recommend to use virtual environment as it avoids any system level limitations:
python3 -m venv venv
source venv/bin/activate
pip install httpx[http2]
it should work now