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

pypy5.6 install confluent_kafka cause: undefined symbol PyUnicode_FromFormat Error

When install confluent_kafka on pypy5.6, its has an error of : undefined symbol PyUnicode_FromFormat Error, i dont know how its happend ? the os is: CentOs5.6 the full error output is : Python 2.7.12 (aff251e543859ce4508159dd9f1a82a2f553de00, Nov 12…
0
votes
0 answers

Accessing pip-installed packages from PyPy

I'm trying to figure out how to get PyPy up and running to test a package I author on the platform. I also know very little about PyPy's ecosystem (apparently). My package depends on a third-party package, termcolor, and while it's installed from…
Jules
  • 14,200
  • 13
  • 56
  • 101
0
votes
1 answer

PyPy doesn't find a module made of only *.pyc files

As per my client's request I need to distribute a closed source python program with just the *.pyc files, and must be run via pypy. The program has a subdirectory where various modules are imported: start.pyc backends/ server.pyc ... the…
zontar
  • 485
  • 7
  • 18
0
votes
1 answer

Difference between getting value by dictionary key multiple times instead of linking the value in PyPy

For instance I have a code. def my_function(my_dict, selections_list): for value in selections: if value in my_dict: # maybe try -> except KeyError ?! a = my_dict[value] # Do something if…
David Mnatsakanyan
  • 455
  • 1
  • 4
  • 15
0
votes
0 answers

pypy5.1.1 errors installing packages

Environment: $cat /etc/issue Red Hat Enterprise Linux Server release 6.2 (Santiago) Kernel \r on an \m $pypy Python 2.7.10 (b0a649e90b6642251fb4a765fe5b27a97b1319a9, May 26 2016, 05:22:09) [PyPy 5.1.1 with GCC 4.8.5] on linux2 Type "help",…
0
votes
0 answers

How to install packages for pypy?

I've installed pip for pypy,and successfully installed requests, BeautifulSoup4. Then,i am trying to install psycopg2 and gevent. Both return the following Command "/usr/bin/pypy -u -c "import setuptools,…
M1nt_zwy
  • 887
  • 3
  • 9
  • 19
0
votes
1 answer

Running py.test under pypy

How do I run pytest using pypy? Travis does it, so it must be possible. This is related to similar question how to run pytest using Micropython. arkadiusz@pc:~/Dokumenty/GitHub/construct$ pypy -m pytest /usr/bin/pypy: No module named pytest
ArekBulski
  • 4,520
  • 4
  • 39
  • 61
0
votes
1 answer

import hooks (custom module loaders) for pypy do not work

I'm successfully able to create import hooks to load files directly from memory in python2.7. The example I used was the accepted response to this question: python:Import module from memory However; when applying this code on pypy; i get an import…
efel
  • 1,054
  • 3
  • 14
  • 29
0
votes
1 answer

Any better way to calculate product of multiple lists?

I need to get all possible combinations based on n-number of input lists and do some stuff to them. current code example: import itertools # example inputs list_small = [1, 2, 3] list_medium = [444, 666, 242] list_huge = [1680, 7559, 5573, 43658,…
Ivan Bilan
  • 2,379
  • 5
  • 38
  • 58
0
votes
1 answer

How to include non PyPi packages for virtualenv requirements file?

Is there a way to include packages/modules not available through pip in the requirements file so that the project is portable? The default version of lxml seems to have issues with pypy so I need to use a custom fork. The problem is I need Heroku…
lonewaft
  • 812
  • 2
  • 11
  • 28
0
votes
2 answers

Possible to install PyPy on Cygwin using Cygwin Ports?

I found the page https://sourceforge.net/p/cygwin-ports/pypy/ci/master/tree/pypy-1.9-1.cygport, which led me to believe that it'd be possible to install pypy on cygwin using https://sourceware.org/cygwinports/. However, pypy was not found as an…
boardrider
  • 5,882
  • 7
  • 49
  • 86
0
votes
0 answers

What does NotImplementedError mean in pypy for numpy.load() method?

My question is about a Pypy error. Totay I intended to start using pypy. However when I run my former python code it gave me a strange error message. Here is my code: import numpy as np k = np.load('alldata.npy') print k.shape when I use python2…
A Ef
  • 13
  • 2
  • 8
0
votes
1 answer

Failed to `pip install numpy` in pypy2 virtual environment on Ubuntu

I build a virtual environment of PyPy 5.3.1 with GCC 4.6.3 on Ubuntu Linux 16.04.1 LTS, and Python 2.7.10 is the base interpreter. When I do pip install numpy in this virtual environment the following error occurrs: Running setup.py bdist_wheel…
JavaFresher
  • 81
  • 1
  • 9
0
votes
1 answer

In what order should Python’s list.__contains__ invoke __eq__?

Consider the following Python program: class Foo(object): def __init__(self, bar): self.bar = bar def __repr__(self): return 'Foo(%r)' % (self.bar,) def __eq__(self, other): print('Foo.__eq__(%r, %r)' % (self,…
Vasiliy Faronov
  • 11,840
  • 2
  • 38
  • 49
0
votes
1 answer

**ImportError**: unable to load extension module '/home/wyx/pypy3env/site-packages/numpy/core/**multiarray.pypy3-52.so**':

I created a virtualenv of PyPy 5.2.0-alpha0 with GCC 4.6.3 on Ubuntu 14.04. After that installed numpy (using pip) for pypy successfully, when i do import numpy in the pypy3 intepreter the following error occurrs: ImportError: unable to load…
JavaFresher
  • 81
  • 1
  • 9