Cython编译独立的可执行文件

cython --embed -o hello.c hello.py
gcc hello.c -o hello -I /Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -L /Library/Frameworks/Python.framework/Versions/3.6/lib -lpython3.6m

http://masnun.rocks/2016/10/01/creating-an-executable-file-using-cython/

https://github.com/cython/cython/wiki/EmbeddingCython

猜你喜欢

转载自www.cnblogs.com/lilei9110/p/9777339.html