claude-agent-sdk-python icon indicating copy to clipboard operation
claude-agent-sdk-python copied to clipboard

ModuleNotFoundError: No module named 'typing_extensions'

Open crazyss opened this issue 4 months ago • 3 comments

follow quick start I encountered this error, it's a new environment, so i think we miss a requirement.

ModuleNotFoundError: No module named 'typing_extensions'

pip install typing_extensions

can fix it.

crazyss avatar Aug 14 '25 05:08 crazyss

Hi @crazyss and @maintainers, I’m still learning and just wanted to kindly check if there’s any update on the typing_extensions issue? I’d love to help by creating a PR to add it to the dependencies, but wanted to be sure it’s okay to do so.

tarun2684 avatar Aug 14 '25 05:08 tarun2684

Is this still relevant? I cannot reproduce this issue locally

aoezdTchibo avatar Sep 08 '25 10:09 aoezdTchibo

I think this happens because the dependency in pyproject.toml only installs typing_extensions for Python versions below 3.11:

"typing_extensions>=4.0.0; python_version<'3.11'"

On Python ≥3.11, this condition skips installation, which leads to the ModuleNotFoundError.

Installing it manually (pip install typing_extensions) works, but it might be better to include it unconditionally or mention it in the Quick Start instructions.

AnkitSharma-29 avatar Oct 14 '25 10:10 AnkitSharma-29