Supported platforms and architectures

See also Python on Android.

Python platforms

Platform sys.platform
AIX aix5, aix6, aix7 posix
Cygwin cygwin ?
FreeBSD freebsd5, freebsd6, … posix
Java java (with a suffix?) ?
Linux linux on Python 3, linux2 on Python 2 (*) posix
macOS darwin posix
NetBSD netbsd (with a suffix?) posix
OpenBSD openbsd5 posix
Solaris sunos5 posix
Windows win32 nt

sys.platform comes from the MACHDEP variable which is built by the configure script using:

  • uname -s command output converted to lowercase, with some special rules (ex: linux3 is replaced with linux on Python 3)
  • uname -r command output (or uname -v on AIX, UnixWare or OpenUNIX)
  • $host variable (./configure --host=xxx parameter) when cross-compiling

(*) sys.platform was also linux3 on old versions of Python 2.6 and Python 2.7 with Linux kernel 3.x.

Supported architectures

Well supported architectures:

  • Intel x86 (32-bit) and x86_64 (64-bit, aka AMD64)

Best effort support architectures:

  • PPC64: should be well supported in practice
  • ARMv7: should be well supported in practice
  • s390x

Well supported platforms

Well supported platforms on Python 3.7 and 2.7:

  • Linux
  • Windows Vista and newer for Python 3.7, Windows XP and newer for Python 2.7
  • FreeBSD 10 and newer
  • macOS Leopard (macOS 10.6, 2008) and newer


CPython still has compatibility code for Linux 2.6, whereas the support of Linux 2.6.x ended in August 2011, longer than 6 years ago.

Proposition in January 2018 to drop support for old Linux kernels:


  • Windows Supported Versions in Python (in the Python development master branch)

  • Windows Vista support dropped in Python 3.7

  • Windows XP support dropped in Python 3.5

  • Windows 2000 support dropped in Python 3.4

  • bpo-23451, 2015-03: “Python 3.5 now requires Windows Vista or newer”. See change1 and change2.

  • Python 2.7 supports Windows XP and newer

  • PEP 11 on Windows:

    CPython’s Windows support now follows [Microsoft product support lifecycle]. A new feature release X.Y.0 will support all Windows releases whose extended support phase is not yet expired. Subsequent bug fix releases will support the same Windows releases as the original feature release (even if the extended support phase has ended).


  • Python 3.7 dropped support for FreeBSD 9 and older.
  • FreeBSD 9 buildbot wokers have been removed in 2017


  • 2018-05-28: macOS Leopard (macOS 10.6, 2008) is currently the minimum officially supported macOS version.
  • February 2018: Tiger (macOS 10.4, 2004) buildbots removed, which indirectly means that Tiger is no longer officially supported.

Tested by Travis CI and buildbots.

Best effort and unofficial platforms

Supported platform with best effort support:

  • Android API 24
  • OpenBSD
  • NetBSD
  • Solaris, OpenIndiana
  • AIX

Platforms not supported officially:

  • Cygwin
  • MinGW
  • HP-UX

Unofficial projects:

  • Python for OpenVMS
  • PythonD: PythonD is a 32-bit, multi-threaded, networking- and OpenGL-enabled Python interpreter for DOS and Windows.

I want CPython to support my platform!

In short, there are 2 conditions:

  • the full test suite have to pass (./python -m test succeess)
  • a CPython core developer has to be responsible of the platform to fix issues specific to this platform on CIs.

If it’s not possible, the best option is to maintain a fork of CPython (fork of the Git repository) to maintain patches to top of the master branch (and maybe also patches on other branches).

More detail in the PEP 11.