Install PYPY for mannequins - What to do with a zip file

I'm trying to use Pypy to make my code run faster, but I don’t know what to do with the zip file that I downloaded from the site (I tried to read the directions, but it moved too fast, and I'm not sure I don’t know what is going on). I was wondering if anyone had simple step-by-step instructions for installing and using Pypy. I also use Wing for Windows

+5
source share
1 answer

Unzip the zip file to a suitable location, for example. C:\pypythen run pypy.exefrom the folder you unzipped into. No installation for pypy. Similar to deleting, just delete the folder.

C:\pypy\pypy.exe , , Python, , >>>>.

script pypy :

C:\pypy\pypy.exe script.py

, Python 3.3 , Windows Python. ini (% USERPROFILE%\AppData\Local\py.ini), % USERPROFILE% , :

[commands]
pypy=c:\pypy\pypy.exe

hashbang script, pypy script , . script.py :

#!pypy
import sys
print(sys.version)

#!python27, script Python 2.7 #!python33, Python 3.3.

+8

All Articles