I recently started python development on raspberry pi. While reading about .pyc file to speed up the start up, I was wondering if I test a .pyc file on PC, given that same python modules are available on Rpi, will it work directly ? Please also include what happens if python version or any of module version differs on target platform.
Thanks in advance.
Short answer: Yes. Just keep in mind that your code must be OS-aware too.
And use the same version of python in both platforms.
Is .pyc platform independent?