807 MB for 120 Packages: What pip install crewai Pulls
The framework imports fine locally, then the container image is 1 GB and CI spends minutes resolving dependencies.
📜 Table of Contents
📖 Keep reading
One line in requirements.txt. Seven lines in pip list? No: 120 wheels, 231 MB of downloads and 807 MB in the virtualenv, measured on 1 December 2026 with crewai 1.15.47. The import is still one line. Everything around it is not.
The same command run against six other agent frameworks produced anything from 11 MB and 11 packages to 56 MB and 62 packages. The spread is not about features. It is about what each package pulls in by default, and it lands on your disk, your image size and your build minutes.
How each number was produced
Python 3.11.6, pip 23.3.1, Linux x86_64, one machine. For each package, a clean directory and the same command:
python3 -m venv /tmp/probe
/tmp/probe/bin/pip download --only-binary=:all: --no-cache-dir -i https://pypi.org/simple -d /tmp/wheels crewai
du -sm /tmp/wheels # download size
ls /tmp/wheels | wc -l # wheel count
One unit note: du -sm reports binary megabytes (MiB), and the numbers below are left as it printed them. The comparison is unaffected, the label is just the tool's.
--only-binary=:all: forces wheels, so nothing is compiled and the number is what a normal install would fetch. --no-cache-dir prevents a warm cache from hiding bytes. The install size was then measured separately: fresh venv, pip install --no-index --find-links=/tmp/wheels crewai, du -sm on the venv, and an import check.
Seven frameworks, same command
| Package | Wheels | Download | Time | Largest wheel |
|---|---|---|---|---|
| autogen-agentchat | 11 | 11 MB | 3 s | pillow 6.8 MB |
| langgraph | 38 | 14 MB | 5 s | zstandard 5.3 MB |
| openai-agents | 38 | 15 MB | 4 s | cryptography 4.5 MB |
| smolagents | 28 | 17 MB | 3 s | pillow 6.8 MB |
| pydantic-ai | 94 | 37 MB | 9 s | cryptography 4.5 MB |
| llama-index-core | 62 | 56 MB | 11 s | numpy 16.1 MB |
| crewai | 120 | 231 MB | 31 s | lancedb 85.5 MB |
All seven are the current release on PyPI at the time of the test. No extras were requested; the base package name is what a reader would type.
crewai: 231 MB down, 807 MB on disk
The download is 231 MB. The installed virtualenv is 807 MB, about 3.5 times the compressed wheel size, because wheels are zip archives that get expanded. A 122-entry pip list (120 distributions plus pip and setuptools) and import crewai returned 1.15.47.
Three wheels account for most of the weight: lancedb at 85.5 MB, pyarrow at 52.5 MB and uv at 16.8 MB. lancedb is an embedded vector store; pyarrow is its columnar data layer. If your agents do not use the built-in memory or knowledge store, you are still downloading both, because they are part of the default dependency resolution.
The package count matters as much as the megabytes. 120 distributions means 120 sets of release notes, 120 version pins and 120 places a security advisory can land. On a 1 GB image that is also the difference between a build layer you can cache and one you rebuild every time a minor dependency moves.
pydantic-ai: 94 packages, 37 MB
The second-heaviest package count is the opposite lesson. 94 wheels but only 37 MB: mostly small pure-Python packages, so the disk cost is low while the supply-chain surface is close to crewai's. Package count and download size answer different questions, and a team should look at both before standardising on a framework.
llama-index-core sits in the middle: 62 wheels and 56 MB, with numpy at 16.1 MB and the core package at 11.4 MB. smolagents is small at 28 wheels and 17 MB, with pillow at 6.8 MB. autogen-agentchat is the lightest: 11 wheels and 11 MB, one of which is pillow.
What this does to a container
A python:3.11-slim base is roughly 130 MB. Add crewai's 807 MB virtualenv and the image is close to 1 GB before you ship a single line of your own code. Add a model, a tokenizer and a document parser and 1.5 GB is normal.
The build time follows the package count more than the megabytes: pip has to resolve, download and unpack 120 distributions. On this 2-vCPU machine the download alone took 31 seconds with a fast mirror; a cold CI runner with a slower network is a different number, which is why the method matters more than the stopwatch.
Check before you commit
Run the same test against the framework you are considering, in a throwaway directory, and read three numbers: wheel count, download size, and installed size. The first is supply chain, the second is bandwidth, the third is what your image carries forever.
# 1. what will pip fetch
python3 -m venv /tmp/probe
/tmp/probe/bin/pip download --only-binary=:all: --no-cache-dir -i https://pypi.org/simple -d /tmp/wheels <package>
ls /tmp/wheels | wc -l
du -sm /tmp/wheels
# 2. what it becomes after install
python3 -m venv /tmp/inst
/tmp/inst/bin/pip install --no-index --find-links=/tmp/wheels <package>
du -sm /tmp/inst
/tmp/inst/bin/pip list | wc -l
Two practical rules follow. Pin the framework itself and let the resolver pick transitive versions, then snapshot the result with a lock file; a 120-package tree that moves under you is not reproducible. And if the image is too large, cut at the source: choose the lighter framework, or install the heavy optional pieces in a separate stage, rather than deleting files from site-packages after the fact.
What this test does not cover
Seven packages, one release each, Python 3.11 on Linux x86_64, no extras requested. No model weights, no OS packages, no GPU libraries. PyPI versions move, so re-run the command before you rely on a number. The installed size was measured once, for crewai, not for every framework, so the 3.5× expansion is a reference point rather than a constant.
Related: what MCP tool schemas cost in tokens, prompt cache hit rates, GGUF bits per weight and VRAM, and embedding models for a 1 GB VPS.
Written by our editorial team; tools listed here are tested or verified against public sources. Links point to official sites or GitHub repos for reference only — no paid placements.