Reputation: 57
whenever I import the module "httpx", for example in this code:
import httpx
input()
I get this error:
module 'httpcore' has no attribute 'TimeoutException'
line 1, in <module>
import httpx
Upvotes: 0
Views: 9277
Reputation: 36
You might need to stick with an older version of httpx for now, try version 19
pip install httpx==0.19.0
Upvotes: 1
Reputation: 57
Ok, I finally solved the error after 1 month, all you got to do is:
pip uninstall httpcore
then
pip install httpcore[http2]
Upvotes: 0
Reputation: 80
What version of pip are you using ? Try updating pip and reinstalling the package Or you can try installing the pre 10 release using $ pip install httpx --pre as stated in the httpx docs https://www.python-httpx.org/
Upvotes: 1