且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Python中编译C代码的问题

更新时间:2022-12-22 21:55:40

注释 setup.py 中的行,该行说 libraries = ['m'] ,然后再次运行。

Comment the line in setup.py that say libraries=['m'], and run again.

链接到m的需要可能是链接Math库的GCC事情,该库由Windows环境中的MSVCR管理。

The need to link to m might be a GCC thing to link Math library, that is managed by MSVCR in Windows environment.