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
0
votes
1 answer

how to solve this error when running flask with pypy?

When i was trying to run Flask with pypy this error occurred. When I run with python it works normally. Traceback (most recent call last): File "flaska.py", line 1, in from flask import Flask File…
JNTSX
  • 3
  • 2
0
votes
1 answer

how can I install numpy on pypy on my 64 bit computer running Windows 64 bit?

hardware/software: Machine 64 AMD processor running 64 bit windows I have a computationally heavy program that I wish to speed up by using Pypy. I have installed pypy and also installed Microsoft Visual Studio and Microsoft Visual C++ Build…
0
votes
1 answer

Pypy(Window10) ImportError: No module named yaml

I am working under Anaconda environment(using Anaconda Prompt) and activate snakes (C:\Users\Acer\Anaconda3\envs\snakes). I have done the 'conda install pip' and 'pip install yaml', why I still face import error on yaml…
Casey Yeow
  • 15
  • 6
0
votes
1 answer

how can I view the c code generated from my pypy program

Many language environments allow one to "disassemble" a provided function. Since Pypy compiles to C-code (if I understand things correctly). then it seems natural to be able to see a C-code dump from an expression, or a whole python file. Can I do…
Dan Oblinger
  • 489
  • 3
  • 15
0
votes
0 answers

Invalid syntax error when running pypy2.7

I encounter the invalid syntax error below, when I run pypy, even when epto.py and conf_epto is located within the directory C:\Users\Acer\pypy2.7-v7.0.0-win32. (snakes) C:\Users\Acer\pypy2.7-v7.0.0-win32>pypy Python 2.7.13 (9112c8071614, Feb 06…
Casey Yeow
  • 15
  • 6
0
votes
1 answer

How do you profile a Python script from Windows command line using PyPy and vmprof?

I have a Python script that I want to profile using vmprof to figure out what parts of the code are slow. Since PyPy is generally faster, I also want to profile the script while it is using the PyPy JIT. If the script is named myscript.py, how do…
0
votes
1 answer

../pypy3/bin/pip3 install give ERRORS

I am using pypy3 to compile python project which is related to video streaming. I wanted to speed up the video (want to increase average frames per second). To run the project, I need to install opencv-python, scipy, ffpyplayer, and pyglet. I tried…
keh
  • 3
  • 3
0
votes
1 answer

Pypy CFFI memory management issues

T tried to speed up my Pypy code by adding some c functions. The problem is, the memory usage is always increasing! I saw a few posts on this subject and try to make a simple test to illustrate that. In my test bellow, I am able to release memory…
0
votes
1 answer

Compiled cpython file missing from installed library

A library we use depends on another library called Jellyfish. That library implements logic where if there's a cpython version, it'll import that. If not, it'll use the pypy version. Pypy has a known issue (reference:…
Robert Townley
  • 3,414
  • 3
  • 28
  • 54
0
votes
1 answer

pypy import MySQL-Python lib failed

~$ PYTHONPATH=/usr/local/lib/python2.7/dist-packages:/usr/local/lib/python2.7/dist-packages/MySQL_python-1.2.5-py2.7-linux-x86_64.egg pypy Python 2.7.13 (6.0.0+dfsg-1~ppa1~ubuntu14.04, Apr 28 2018, 03:15:01) [PyPy 6.0.0 with GCC 4.8.4] on…
Da Lin
  • 179
  • 2
  • 9
0
votes
1 answer

Where is the pypy package in installed pypy-c

I have pypy-c installed with macports (latest version : pypy @1.4.1). I run pypy-c and try to import pypy $ pypy-c >>>> import pypy Traceback (most recent call last): File "", line 1, in ImportError: No module named pypy >>>>…
highBandWidth
  • 16,751
  • 20
  • 84
  • 131
0
votes
2 answers

unexpected behavior while logging to console using Queue & Listener

I've encountered some logging voodoos in my project. After reading the followings: QueueHandler QueueListener I designed the logging in my program as follows: in the main process - root logger assigned with a QueueHandler. That queue is listened by…
NI6
  • 2,477
  • 5
  • 17
  • 28
0
votes
2 answers

Is there a way to install Pypy3 on Arago Project?

I am trying to install pypy3 in TI's ARM embedded system. It was based on linux, so I thought I could install pypy3 like I can do in linux system, but it did not work that way. Here is what I've done: unzip the zip file to /opt made symlink to…
BerryMan
  • 145
  • 1
  • 15
0
votes
1 answer

Error during installation of psutil and configuring for pypy

We are getting an error during configuration of pypy interpreter we have already installed following commands sudo yum install python-devel sudo yum install gcc When running: git clone https://github.com/giampaolo/psutil.git cd psutil python…
0
votes
2 answers

Is Python byte-code, interpreter independent?

This is an obvious question, that I haven't been able to find a concrete answer to. Is the Python Byte-Code and Python Code itself interpreter independent, Meaning by this, that If I take a CPython, PyPy, Jython, IronPython, Skulpt, etc,…
ekiim
  • 792
  • 1
  • 11
  • 25