How to build cython pyx to pyd in anaconda(python3.6) in windows 8.1?

僤鯓⒐⒋嵵緔 提交于 2019-12-04 14:42:33

There's nothing wrong with your .pyx or setup.py code AFAICT. I am using Anaconda3 on windows 10 and it works.

The issue is with the compiler. Did you install mingw32 yourself? It looks like whichever version you have cannot compile the code. I got the same error for cygwin

But, the code compiled fine for me using the compiler included in Visual Studio 14 and the borlands compiler.

Try --compiler=bcpp (hopefully already be on your system)

or

Try installing: http://landinghub.visualstudio.com/visual-cpp-build-tools and run your compile command with --compiler=msvc (or just without specifying the compiler.)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!