Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do I need Python installed if I have PYC files?

Tags:

python

I want to add Python as a scripting language to my game. If instead of distributing PY script, I distribute the PYC compiled files with my game, will the user still need Python installed, or will the DLL be sufficient?

like image 620
Paul Manta Avatar asked Jan 19 '23 11:01

Paul Manta


2 Answers

Not only would they still need the Python interpreter, but the compiled python byte-code files are not guaranteed to work across different platforms.

like image 162
Chris Farmiloe Avatar answered Jan 29 '23 12:01

Chris Farmiloe


You do need an executable to actually load the files into the VM. Fortunately it doesn't need to be very complex.

like image 22
Ignacio Vazquez-Abrams Avatar answered Jan 29 '23 14:01

Ignacio Vazquez-Abrams