Tensorflow installation error not a supported wheel on this platform
Master System Design with Codemia
Enhance your system design skills with over 120 practice problems, detailed solutions, and hands-on exercises.
Installation Error: "Not a Supported Wheel on This Platform"
Installing TensorFlow, one of the most popular open-source libraries for machine learning, can sometimes result in errors that can be daunting, especially for beginners. One common error encountered during installation is the "not a supported wheel on this platform" message. This article aims to explore this error in detail, its technical origins, and ways to resolve it.
Understanding Python Wheels
Before diving into the error, it’s crucial to understand what a "wheel" is in Python. A wheel is a package format used for distributing Python programs, and it makes the installation process faster and easier. The wheel format has the file extension .whl.
A typical wheel filename looks like this:
The filename includes metadata about the package, such as:
- The name and version of the package (e.g.,
tensorflow-2.4.1) - The Python version it is compatible with (e.g.,
cp38for CPython 3.8) - The architecture it supports (e.g.,
x86_64for 64-bit systems)
Causes of "Not a Supported Wheel on This Platform" Error
This error primarily occurs due to compatibility issues. Here are some common causes:
- Incompatible Python Version: The wheel you are trying to install may not support the version of Python you have installed.
- Architecture Mismatch: You might be attempting to install a wheel built for a different architecture (e.g., trying a 64-bit wheel on a 32-bit system).
- Platform-Specific Wheels: Some wheels are built for specific platforms like Linux, Windows, or macOS. An attempt to install a wheel on an unsupported platform will result in this error.
- Old Pip Version: An outdated version of pip might not recognize new wheel formats or metadata.
Resolving the Error
Here are some approaches to resolve this error:
1. Verify Python and Pip Versions
Ensure that your Python and pip are up to date. You can check their versions using:
Update pip with the following command:
2. Match the Python Version
Check the wheel file to ensure it matches your Python version. If your Python version is 3.8, the wheel file should have cp38 in its name.
3. System Architecture
Ensure the architecture of the wheel matches your system:
- On Windows, check your system type under
System Information. - On macOS or Linux, use:
Choose a compatible wheel for your system.
4. Install Using Source Distribution
If a compatible wheel is unavailable, you can try installing TensorFlow from a source distribution (.tar.gz). Use the following command:
This approach compiles the package from the source, which might take longer but ensures compatibility.
Example Scenario
Suppose you're using Python 3.9 on a Windows 64-bit machine and attempt to install TensorFlow with the following wheel:
You'll encounter the "not a supported wheel on this platform" error because the wheel specifies compatibility with Python 3.8 (cp38), while you're using Python 3.9.
You should use:
Summary Table
| Issue | Description | Resolution |
| Incompatible Python | Wheel’s Python version does not match | Match in the wheel name |
| Architecture Mismatch | Wheel’s architecture does not match | Use wheel compatible with your |
| Platform-Specific | Attempting to install on wrong platform | Choose wheel built for your |
| Old Pip Version | Pip version outdated & lacks support | Upgrade pip to the latest version |
Additional Details
When troubleshooting wheel issues, ensure to refer to both the Python version and compatible packages. Furthermore, consider the software environment setup utilizing virtual environments (venv) to isolate dependencies and maintain a clean workspace.
Additionally, for Windows users, the Visual C++ Redistributable for Visual Studio 2015, 2017, 2019, and 2022 helps resolve common building issues when installing from source.
By understanding the structure of wheel files and diagnosing the specific cause for installation errors, you can effectively resolve the "not a supported wheel on this platform" error and continue developing powerful machine learning models with TensorFlow.

