Search code examples
pythonhttppython-requeststimeouthttpx

httpx - module 'httpcore' has no attribute 'TimeoutException'


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

Solution

  • You might need to stick with an older version of httpx for now, try version 19

    pip install httpx==0.19.0