tensorflow-cpu
TensorFlow is an open source machine learning framework for everyone.
What it is and what it does
TensorFlow CPU is an open-source machine learning framework designed for numerical computation and deep learning on CPU-based hardware. It provides a flexible architecture for building, training, and deploying models across desktops and servers, with a core API built around tensor operations and automatic differentiation. The package includes Keras as a high-level API for model construction and comes with support for scientific computing beyond machine learning.
The CPU variant trades GPU acceleration for simpler deployment and lower system requirements. It brings 20 runtime dependencies including numpy for array operations, keras for model building, protobuf for serialization, grpcio for distributed computing, and h5py for model persistence. Installation is straightforward via wheel distribution, though the dependency chain adds moderate friction. Active maintenance and widespread adoption make it a stable choice for learning, prototyping, and production inference on CPU systems.
Use it for:
- Train neural networks and deep learning models on CPU systems without GPU hardware.
- Build and deploy machine learning models for inference on edge devices or servers.
- Perform numerical computation and tensor operations for scientific research.
- Prototype machine learning workflows before scaling to GPU or TPU infrastructure.
- Develop and test models in environments where GPU drivers or CUDA are unavailable.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
TensorFlow CPU provides a machine learning and numerical computation framework for building and training models on CPU-based systems, with support for Python 3.10 through 3.13.
Yes, if you need a machine learning framework for CPU-based work. TensorFlow CPU is production-stable, actively maintained, and permissively licensed. The 20 runtime dependencies add moderate install friction, but the ecosystem is mature and well-tested. Choose this over the GPU variant only if you lack GPU hardware or need simpler deployment; for performance-critical training, GPU acceleration is typically necessary.
Install
tensorflow-cpu on PyPI
pip
pip install tensorflow-cpuuv
uv add tensorflow-cpupoetry
poetry add tensorflow-cpuInstalling tensorflow-cpu
Before you install
Medium install friction due to 20 runtime dependencies and wheel-based distribution across multiple Python versions (3.10–3.13) and platforms. Active maintenance with recent commits and strong community backing (197028 stars) suggests reliable ongoing support.
License in practice
Apache 2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for most projects that can accommodate attribution and license inclusion.
Quickstart
pip install tensorflow-cpu==2.21.0
import tensorflow as tf
model = tf.keras.Sequential([tf.keras.layers.Dense(10)])
Requires Python >=3.10; 20 runtime dependencies (numpy, keras, protobuf, grpcio, h5py, and others) must resolve cleanly in your environment.
Verify before relying
- Whether the CPU variant is suitable for your model size and training throughput requirements compared to GPU variants.
- Compatibility of all 20 runtime dependencies in your specific Python environment and OS version.
Package facts
| License | Apache 2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 20 — absl-py, astunparse, flatbuffers, gast, google_pasta, libclang, opt_einsum, packaging, protobuf, requests, setuptools, six, termcolor, typing_extensions, wrapt, grpcio, keras, numpy, h5py, ml_dtypes |
| Maintenance | actively maintained — 161 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,837,518/month — #3,500 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tensorflow_cpu-2.21.0-cp310-cp310-manylinux_2_27_x86_64.whl; tensorflow_cpu-2.21.0-cp310-cp310-win_amd64.whl; tensorflow_cpu-2.21.0-cp311-cp311-manylinux_2_27_x86_64.whl; tensorflow_cpu-2.21.0-cp311-cp311-win_amd64.whl; tensorflow_cpu-2.21.0-cp312-cp312-manylinux_2_27_x86_64.whl; tensorflow_cpu-2.21.0-cp312-cp312-win_amd64.whl; tensorflow_cpu-2.21.0-cp313-cp313-manylinux_2_27_x86_64.whl; tensorflow_cpu-2.21.0-cp313-cp313-win_amd64.whl
Keywords: tensorflow, tensor, machine, learning
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
tensorflowTensorFlow is an open-source machine learning…
permissive · top 5,000 on PyPI
tensorflow-cpu-awsTensorFlow CPU for AWS is a machine learning…
permissive · top 15,000 on PyPI
tensorflow-intelIntel-optimized TensorFlow for Windows that…
permissive · top 15,000 on PyPI
tensorflow-aarch64TensorFlow for aarch64 is a machine learning…
permissive · top 15,000 on PyPI
tf-nightly-cputf-nightly-cpu provides a CPU-optimized nightly…
permissive · top 15,000 on PyPI
tf-nightlytf-nightly provides nightly builds of…
permissive · top 15,000 on PyPI
tensorlyTensorLy performs tensor decomposition, tensor…
permissive · top 15,000 on PyPI
thincThinc is a lightweight deep learning library…
permissive · top 1,000 on PyPI
paddlepaddlePaddlePaddle is a deep learning framework for…
permissive · top 5,000 on PyPI
tinygradtinygrad is a minimal deep learning framework…
permissive · top 15,000 on PyPI