-
|
How can I install httpx both with socks support as well as http2 support? are they mutually exclusive at the moment? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Hey! You can install $ pip install "httpx[http2, socks]"
Yes. |
Beta Was this translation helpful? Give feedback.
-
|
Just a side note to anyone else that is wondering, when installing this using pip from the command line either: However, when including this dependency in a requirements.txt file, this should appear as |
Beta Was this translation helpful? Give feedback.
Just a side note to anyone else that is wondering, when installing this using pip from the command line either:
pip install "httpx[http2, socks]"orpip install "httpx[http2,socks]"are fine (the double quotes are mandatory though).However, when including this dependency in a requirements.txt file, this should appear as
httpx[http2,socks], i.e. NO double quotes and NO spaces whatsoever. One can also include the version, as usual, like so:httpx[http2,socks]==0.24.1.