tensorflow
TensorFlow is an open source machine learning framework for everyone.
What it is and what it does
TensorFlow is a production-grade machine learning framework that provides a flexible architecture for numerical computation and deep learning. It abstracts low-level tensor operations and automatic differentiation, allowing you to define models declaratively and train them on diverse hardware—from laptops to distributed clusters—without rewriting code. The framework includes Keras as its high-level API for building neural networks, and supports both eager execution for research and graph-based execution for deployment.
The package ships with 20 runtime dependencies including numpy for array operations, keras for model building, protobuf for serialization, and grpcio for distributed training. Installation requires Python 3.10 or later and platform-specific compiled wheels; GPU acceleration is available for NVIDIA hardware via CUDA 12. It is actively maintained and widely used in production systems for computer vision, natural language processing, reinforcement learning, and scientific computing.
Use it for:
- Build and train convolutional neural networks for image classification or object detection tasks.
- Develop recurrent neural networks or transformer models for sequence modeling and NLP applications.
- Deploy trained models to mobile devices, edge hardware, or cloud infrastructure for inference.
- Perform distributed training across multiple GPUs or TPUs for large-scale model development.
- Conduct numerical experiments and scientific simulations using automatic differentiation.
- Prototype machine learning pipelines with Keras high-level APIs before production deployment.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
TensorFlow is an open-source machine learning framework for building and training neural networks and other numerical computation models, deployable across CPUs, GPUs, TPUs, and edge devices.
Yes. TensorFlow is a mature, actively maintained framework with no known vulnerabilities, strong community support, and permissive licensing. Install friction is moderate due to compiled dependencies, but prebuilt wheels for modern Python versions (3.10–3.13) and multiple platforms reduce setup complexity. Suitable for research, prototyping, and production machine learning workloads.
Install
tensorflow on PyPI
pip
pip install tensorflowuv
uv add tensorflowpoetry
poetry add tensorflowInstalling tensorflow
Before you install
Medium install friction due to compiled dependencies and platform-specific wheels. Active maintenance with recent commits and strong community backing (197024 stars). Supports Python 3.10–3.13 with prebuilt wheels for macOS ARM, Linux x86_64/aarch64, and Windows.
License in practice
Licensed under Apache 2.0 (permissive), allowing commercial and private use with minimal restrictions. You may use, modify, and distribute TensorFlow freely provided you include a copy of the license and any notices.
Quickstart
pip install tensorflow
import tensorflow as tf
model = tf.keras.Sequential([tf.keras.layers.Dense(10)])
Requires Python >=3.10. GPU support requires NVIDIA CUDA 12 or compatible drivers; CPU-only installation is available but slower for large workloads.
Verify before relying
- Whether pre-built wheels include GPU support by default or if CUDA/cuDNN must be installed separately.
- Performance characteristics and memory footprint for typical model training scenarios.
- Compatibility with specific CUDA versions beyond 12.2 mentioned in classifiers.
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 | 20,761,191/month — #1,026 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: tensorflow-2.21.0-cp310-cp310-macosx_12_0_arm64.whl; tensorflow-2.21.0-cp310-cp310-manylinux_2_27_aarch64.whl; tensorflow-2.21.0-cp310-cp310-manylinux_2_27_x86_64.whl; tensorflow-2.21.0-cp310-cp310-win_amd64.whl; tensorflow-2.21.0-cp311-cp311-macosx_12_0_arm64.whl; tensorflow-2.21.0-cp311-cp311-manylinux_2_27_aarch64.whl; tensorflow-2.21.0-cp311-cp311-manylinux_2_27_x86_64.whl; tensorflow-2.21.0-cp311-cp311-win_amd64.whl; tensorflow-2.21.0-cp312-cp312-macosx_12_0_arm64.whl; tensorflow-2.21.0-cp312-cp312-manylinux_2_27_aarch64.whl; tensorflow-2.21.0-cp312-cp312-manylinux_2_27_x86_64.whl; tensorflow-2.21.0-cp312-cp312-win_amd64.whl; tensorflow-2.21.0-cp313-cp313-macosx_12_0_arm64.whl; tensorflow-2.21.0-cp313-cp313-manylinux_2_27_aarch64.whl; tensorflow-2.21.0-cp313-cp313-manylinux_2_27_x86_64.whl; tensorflow-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
tensorflow-aarch64TensorFlow for aarch64 is a machine learning…
permissive · top 15,000 on PyPI
tensorflow-cpuTensorFlow CPU provides a machine learning and…
permissive · top 5,000 on PyPI
tensorflow-intelIntel-optimized TensorFlow for Windows that…
permissive · top 15,000 on PyPI
tensorflow-cpu-awsTensorFlow CPU for AWS is a machine learning…
permissive · top 15,000 on PyPI
tf-nightlytf-nightly provides nightly builds of…
permissive · top 15,000 on PyPI
tf-slimTensorFlow-Slim provides high-level layers,…
permissive · top 15,000 on PyPI
tf-nightly-cputf-nightly-cpu provides a CPU-optimized nightly…
permissive · top 15,000 on PyPI
paddlepaddlePaddlePaddle is a deep learning framework for…
permissive · top 5,000 on PyPI
thincThinc is a lightweight deep learning library…
permissive · top 1,000 on PyPI
tensorflow-hubDownloads and loads pre-trained TensorFlow…
permissive · top 5,000 on PyPI