Ammar Askar added the comment:
.pyc files aren't meant to be portable, they contain raw bytecode and data
specific to the version of Python they were compiled on. For example, search
for "Changed in version 3.6" here and you'll see all the little changes to the
bytecode format: https://docs.
New submission from Princy katlana :
When I tried to compile the python source code from python version 3.5 and run
the .pyc file on python version 3.6 then it shows the following exception:
RuntimeError: Bad magic number in .pyc file
--
components: Build
messages: 376003
nosy: princy