zsh: exec format error [How to Solve]

The above problems were encountered when packaging a stand-alone Python environment. It is mainly caused by the inconsistency between the software execution environment and the compilation environment

That is, the environment in which Python is executed needs to be consistent with the environment in which Python is compiled. Specifically, python packaged under Linux cannot be executed under Mac

It is not easy to distinguish the python compilation environment, except that the official website gives an obvious distinction. In daily cooperation, it is common to lack corresponding documents corresponding to customized Python environment

You can use file program under Linux or Mac to view the compilation environment of the program.

Similar Posts: