Software Alternatives & Reviews

py2exe VS Cython

Compare py2exe VS Cython and see what are their differences

py2exe logo py2exe

A distutils extension to create standalone Windows programs from Python scripts.

Cython logo Cython

Cython is a language that makes writing C extensions for the Python language as easy as Python...
  • py2exe Landing page
    Landing page //
    2021-10-04
  • Cython Landing page
    Landing page //
    2023-10-15

py2exe

Categories
  • Website Builder
  • Website Design
  • CMS
  • Programming Language
Website py2exe.org
Details $

Cython

Categories
  • Website Builder
  • Website Design
  • Programming Language
  • CMS
Website cython.org
Details $

py2exe videos

Bypass Anti­Virus using Pyinstaller and py2exe (demo)

More videos:

  • Review - Python Py2exe Compiler Screen De-Constructed

Cython videos

Stefan Behnel - Get up to speed with Cython 3.0

More videos:

  • Review - Cython: A First Look
  • Review - Simmi Mourya - Scientific computing using Cython: Best of both Worlds!

Category Popularity

0-100% (relative to py2exe and Cython)
CMS
34 34%
66% 66
Website Builder
23 23%
77% 77
Website Design
25 25%
75% 75
Programming Language
18 18%
82% 82

User comments

Share your experience with using py2exe and Cython. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, Cython seems to be a lot more popular than py2exe. While we know about 46 links to Cython, we've tracked only 1 mention of py2exe. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

py2exe mentions (1)

  • Games
    Sounds like you are on Windows. I think something like https://py2exe.org/ will be what you are after. I'm on Mac / Linux systems only, so I can't really provide info on how to use it, but I know there are some good tutorials out there. Source: over 1 year ago

Cython mentions (46)

  • How to make a c++ python extension?
    The approach that I favour is to use Cython. The nice thing with this approach is that your code is still written as (almost) Python, but so long as you define all required types correctly it will automatically create the C extension for you. Early versions of Cython required using Cython specific typing (Python didn't have type hints when Cython was created), but it can now use Python's type hints. Source: 10 months ago
  • Codon: Python Compiler
    Just for reference, * Nuitka[0] "is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11." * Pypy[1] "is a replacement for CPython" with builtin optimizations such as on the fly JIT compiles. * Cython[2] "is an optimising static compiler for both the Python programming language and the extended Cython programming language... Makes writing C... - Source: Hacker News / 11 months ago
  • Any faster Python alternatives?
    Profile and optimize the hotspots with cython (or whatever the cool kids are using these days... It's been a while.). Source: 12 months ago
  • What exactly is 'JIT'?
    JIT essentially means generating machine code for the language on the fly, either during loading of the interpreter (method JIT), or by profiling and optimizing hotspots (tracing JIT). The language itself can be statically or dynamically typed. You could also compile a dynamic language ahead of time, for example, cython. Source: 12 months ago
  • Been using Python for 3 years, never used a Class.
    There are also just-in-time compilers available for some Python features, that compile those parts to machine code. That includes Numba (usable as a library within CPython) and Pypy (an alternative Python implementation that includes a JIT compiler to improve performance). There’s also Cython, which is a superset of Python that allows more directly interfacing with C and C++ functions, and compiling the resulting... Source: about 1 year ago
View more

What are some alternatives?

When comparing py2exe and Cython, you can also consider the following products

PyInstaller - PyInstaller is a program that freezes (packages) Python programs into stand-alone executables...

Numba - Numba gives you the power to speed up your applications with high performance functions written...

cx_Freeze - cx_Freeze is a set of scripts and modules for freezing Python scripts into executables in much the...

nuitka - Nuitka is a Python compiler.

PyPy - PyPy is a fast, compliant alternative implementation of the Python language (2.7.1).

bbfreeze - create stand-alone executables from python scripts