Questions tagged [pypy]

PyPy is an implementation of the Python language. Do not confuse with PyPI, the package index. General Python questions should just be tagged with python.

PyPy is a fast, very compliant, self-hosting implementation of the Python language. PyPy started out being a Python interpreter written in the Python language itself. It is built using the language.

PyPy has several advantages and distinctive features, including:

  • Speed: thanks to its Just-in-Time (JIT) compiler, Python programs often run faster on PyPy.

  • Sandboxing: PyPy provides the ability to run untrusted code in a fully secure way.

  • Stackless: PyPy can be configured to run in stackless mode, providing micro-threads for massive concurrency.

Programmers interested in following PyPy's progress should check the Dev Site and the PyPy Status Blog. For background, see PyPy - Goals and Architecture Overview.

Releases and builds

At this time there are three PyPy release series with binaries for x86, ARM, and PPC, on Linux, Mac OS/X and Windows:

  • PyPy2.7 v5.6.0 (the Python2.7 compatible release)
  • PyPy3.3 v5.5.0 (the Python3.3 compatible release)
  • PyPy-STM v2.5.1 (Linux x86-64 only)

More informations about builds and versions on download page. There are also nightly builds available.

794 questions
28
votes
4 answers

What does PyPy have to offer over CPython, Jython, and IronPython?

From what I have seen and read on blogs, PyPy is a very ambitious project. What are some advantages it will bring to the table over its siblings (CPython, Jython, and IronPython)? Is it speed, cross-platform compatibility (including mobile…
Jason Christa
  • 12,150
  • 14
  • 58
  • 85
27
votes
1 answer

Can PyPy/RPython be used to produce a small standalone executable?

(Or, "Can PyPy/RPython be used to compile/translate Python to C/C++ without requiring the Python runtime?") I have tried to comprehend PyPy with its RPython and its Python, its running and its compiling and its translating, and have somewhat…
Chris Morgan
  • 86,207
  • 24
  • 208
  • 215
27
votes
4 answers

How to run ipython with pypy?

How do I use ipython on top of a pypy interpreter rather than a cpython interpreter? ipython website just says it works, but is scant on the details of how to do it.
wim
  • 338,267
  • 99
  • 616
  • 750
25
votes
5 answers

Is it possible to run a pypy kernel in the Jupyter notebook?

I have always wondered if it were possible to run PyPy in the Jupyter notebook. I recently tried installing PyPy on my local machine, and it ran really well - 100X speedup in an agent-based simulation written in pure Python. However, I miss the…
ericmjl
  • 13,541
  • 12
  • 51
  • 80
25
votes
5 answers

How to install PyPy in anaconda

I have a Linux-64 bit machine. How do I install PyPy in my anaconda environment. I tried conda install pypy. It says there are no available packages. pip install pypy also returns a similar message. Is it that the only way to install PyPy is by…
Menezes Sousa
  • 1,448
  • 2
  • 18
  • 18
25
votes
3 answers

Which setup is more efficient? Flask with pypy, or Flask with gevent?

Both 'pypy' and 'gevent' are supposed to provide high performance. Pypy is supposedly faster than CPython, while gevent is based on co-routines and greenlets, which supposedly makes for a faster web server. However, they're not compatible with each…
hasen
  • 161,647
  • 65
  • 194
  • 231
24
votes
4 answers

How to create a Conda environment that uses PyPy?

So here is my issue. I've managed to install PyPy using conda with the following command: conda install -c conda-forge pypy3.5 Unfortunately, when I try to create an environment that uses this pypy3 exectuable, I cannot find a way to do it. If I…
Bastien
  • 369
  • 1
  • 2
  • 5
24
votes
1 answer

PyPy and PyInstaller

Is it possible to build a single-binary or single-directory package with PyInstaller that uses pypy as interpreter? Any special tricks to do that? Some alternative to PyInstaller? If not, what are the fundamental technical reasons? Notes why/how…
Dima Tisnek
  • 11,241
  • 4
  • 68
  • 120
24
votes
2 answers

Julia's Python performance example in pypy

Julia is a new statistical programming language that claims significantly better performance than competing languages. I'm trying to verify this. Julia has a performance test written in…
Suraj
  • 35,905
  • 47
  • 139
  • 250
23
votes
3 answers

what's the differences python3 and pypy3

Today I knew that pypy3 is faster than python3 for input() time through any algorithm problem. Performance differences were almost as much as 12 times. Why is there such a difference?
Chanyang Sim
  • 255
  • 1
  • 2
  • 7
23
votes
3 answers

Any way to install Pandas with PyPy?

I'm trying to run some code using PyPy to speed it up. My code uses Pandas dataframes, so I'm trying to find a way to install the package... Unfortunately, I can't find a way to do that... searching online yields this and this -- two disappointing…
Afflatus
  • 2,302
  • 5
  • 25
  • 40
21
votes
3 answers

Optimizing a reed-solomon encoder (polynomial division)

I am trying to optimize a Reed-Solomon encoder, which is in fact simply a polynomial division operation over Galois Fields 2^8 (which simply means that values wrap-around over 255). The code is in fact very very similar to what can be found here for…
gaborous
  • 15,832
  • 10
  • 83
  • 102
20
votes
5 answers

Using Numpy with pypy

I am using some numpy tools (mainly arrays) and I wanted to run the script with pypy, but i can't make it work. The error that i get is: ImportError: No module named multiarray. I checked if the multiarray.so file was in the core folder. Can someone…
nunolourenco
  • 699
  • 2
  • 8
  • 18
18
votes
2 answers

Does PyPy work with Py2Exe?

Does PyPy work with Py2Exe? If it doesn't, are there any similar solutions?
Varriount
  • 663
  • 5
  • 18
18
votes
5 answers

Is it possible to install scipy under pypy?

I created a virtualenv with pypy and tried to install scipy, but installation ended with the following error: distutils.errors.DistutilsError: Setup script exited with error: Command "cc -O2 -fPIC -Wimplicit -O2 -fPIC -Wimplicit -O2 -fPIC…
Luke
  • 1,369
  • 1
  • 13
  • 37
1
2
3
52 53