Run python script in PyPy

I have a python script developed in Spyder using Python 2.7.4. This script is called from another python script using:

execfile('script.py') 

I would like to know how I can run both python scripts using PyPy (I would like it because it is faster than standard Python). Thanks!

PS: I already installed PyPy on Windows.

+4
source share
1 answer

Run the first Python script using pypy scriptname.py on the command line. The code executed by eexcfile() will also be run in PyPy because the main script is executed in PyPy.

+6
source

Source: https://habr.com/ru/post/1481245/


All Articles