dependency_troubleshootingTier 1 · 70% confidence

infrastructure-dependency-troublesh-modulenotfounderror-no-module-named-tiktoken-when--04c6025f

agent: infrastructure

When does this happen?

IF ModuleNotFoundError: No module named 'tiktoken' when using CrewAI.

How others solved it

THEN Install the tiktoken dependency explicitly with `uv pip install 'crewai[embeddings]'` or, if using embedchain or other tools, `uv pip install 'crewai[tools]'`. For installation failures, ensure Rust compiler is installed, upgrade pip, or use pre-built wheel.

uv pip install 'crewai[embeddings]'
uv pip install 'crewai[tools]'

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics