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
0 answers

Why is PyPy so unbelievably slow?

I will include only parts of generated code. Asm: mov r15, 10000000 ; 10 millions now ; get time lbl: dec r15 include "temp_code.asm" cmp r15, 0 jne lbl now section '.data' data readable writeable include "temp_data.asm" temp_code.asm…
DSblizzard
  • 4,007
  • 7
  • 48
  • 76
0
votes
1 answer

Is it possible to use different implementation of Python, except of standard one in Gogle Cloud Functions?

I am new to Google Cloud Functions. I want to write a small but execution intensive application. I researched doc and it is unclear if I can use PyPy or CPython when deploying to Google Cloud Functions.
0
votes
2 answers

using CVXPY under PyPy3

I'm trying to use CVXPY under pypy3.6-7.1.1. But I'm getting this error def build_lin_op_tree(root_linPy, tmp): """ Breadth-first, pre-order traversal on the Python linOp tree Parameters ------------- …
0
votes
1 answer

Why do I get this PyPy output when checking the installation version?

I have downloaded the latest version of PyPy and am trying to run some Python script unsuccessfully. When I check the version using "pypy3 -v", I get the following response. What does this mean please? C:\WINDOWS\system32>pypy3 -v #…
pobo123
  • 45
  • 7
0
votes
1 answer

Scipy is not getting instaleed in pypy3

I am using pypy3 in my windows 10. I have already installed numpy, but Scipy is not getting installed in pypy3. Below is the console verbiage of error log while installing Scipy Collecting scipy Downloading…
0
votes
1 answer

pypy3.6-v7.1.1-win32 in windows7 64 bit environment

Using PyPy Interpreter under Windows 64 bit Is it possible to load a 64 bit dll in pypy3.6-v7.1.1-win32 in windows7 64 bit environment? Thank You
Kar
  • 23
  • 6
0
votes
1 answer

Numpy with PyPy problems

I'm trying to install numpy and other packages with PyPy. I get the error: "error: Microsoft Visual C++ 14.1 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/" I used "pypy3 -m pip install…
bkvstar
  • 11
0
votes
2 answers

Python36\Scripts starts on wrong python version

so I made a package that contains one python file that goes during installation to Python36\Scripts. But on WinOS, I have 3 global python interpreters. Main is python2.7, second in use is python3.6 and third in use is python3.7. The package…
PythonMan
  • 787
  • 10
  • 18
0
votes
1 answer

Value error: invalid argument with PyPy when importing pandas and plotly

When importing pandas and pyplot modules into pypy I get the following the error. Python 3.6.1 (784b254d6699, Apr 16 2019, 12:10:48) [PyPy 7.1.1-beta0 with MSC v.1910 32 bit] on win32 Type "help", "copyright", "credits" or "license" for more…
Sasquatch
  • 65
  • 5
0
votes
1 answer

Why is building a list from user input and printing its contents much slower in PyPy than CPython?

I was coding for a problem in CodeForces, and I submitted this code to run in PyPy: import math a=[] b=[] t=int(input()) for i in range(t): n=float(input()) a.append(math.floor(n)) b.append(math.ceil(n)) l=0-sum(a) i=0 while i
0
votes
1 answer

How to let PyPy recognize linear algebra (Intel MKL, OpenBLAS) libraries? Environmental variables issue?

I have a working Python 3.6 Version installed and wanted to try out PyPy for a heuristic algorithm. I installed PyPy using this guide: How to use PyPy on Windows? and got it to run and also install e.g. the openpyxl module via: pypy3 -m pip install…
JanB
  • 179
  • 2
  • 2
  • 10
0
votes
1 answer

How can I rework a call to sys.getsizeof(dict) so that functionality is preserved when using PyPy?

I would like to be able to calculate the number of bytes occupied by my dictionary when running my code with the PyPy interpreter. I do not know ahead of time what the keys of the dictionary will be, nor do I know what the values of those keys will…
pickle
  • 855
  • 1
  • 7
  • 16
0
votes
0 answers

pypy3 - UnicodeDecodeError when reading a csv file

When I run pypy3 file.py, I get an UnicodeDecodeError, because file.csv contains some UTF-8 characters. However, when I run python3 file.py, everything works fine. The key part of file.py: with open("file.csv") as f: reader = csv.reader(f,…
karlosss
  • 2,816
  • 7
  • 26
  • 42
0
votes
1 answer

Profiling background threads of a Python app using vmprof

I'm trying to configure profiling of a Python application (running under pypy2.7 v7.1.1) using vmprof. If the application is ran via pypy -m vmprof ..., the resulting profile file contains samples from all threads (main and background). However, I…
Mikhail Burshteyn
  • 4,762
  • 14
  • 27
0
votes
2 answers

Lowest footprint Python? CPython?

I'm new in Python. After some searching, I've found that PyPy has great performance but it comes with a price. It use too much memory. What I'm looking for in Python is performance with smallest possible footprint. How about CPython? (CPython…
mesen jait
  • 29
  • 3