skillfed

tensorflow-cpu

TensorFlow is an open source machine learning framework for everyone.

tensorflow-cpu v2.21.0 1.8M downloads/30d#3,500 on PyPI197,028
Permissive license Apache 2.0 Active released

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-cpu

uv

uv add tensorflow-cpu

poetry

poetry add tensorflow-cpu

Installing 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

Development Status :: 5 - Production/StableEnvironment :: GPU :: NVIDIA CUDA :: 12Environment :: GPU :: NVIDIA CUDA :: 12 :: 12.2Intended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Scientific/EngineeringTopic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Scientific/Engineering :: MathematicsTopic :: Software DevelopmentTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules

Tags

machine learning frameworkdeep learning librarynumerical computationtensorflow cpuneural network trainingscientific computingtensor operations
deep-learningnumerical-computationcpu-optimized

More Software Development packages