How do I get my script to run on pypy instead of Python

71 views Asked by At

I have script that I'm hoping pypy can speed up. I have unzipped pypy to an x86 folder and added the path. I ran pypy in the command line and it returns the current version. But my question is simply - how do I switch my script to run on pypy and not python? Do I add something to the top of the script or do something in the command promp? Thanks.

I'm frankly not sure what I was expecting. I thought it would be straight forward but theres not many guides online on how to use pypy.

1

There are 1 answers

5
Tom Pauwels On

To run your .py program using 'pypy', you need to run it like this :

pypy program.py

Got the information from this post :

Run python script in PyPy