mingw - Making Cython work with Python 3.4 on Anacondas, Windows 7 64-bit -


i have installed python 3.4 on windows 7 64-bit machine, using anaconda/condas.

when run "hello world" cython example error:

[py34] c:\users\jon\documents\github\cythonfunctions\cython_funcs>python setup.py build_ext --inplace running build_ext building 'cython_funcs.hello' extension c:\anaconda\envs\py34\mingw\bin\gcc.exe -mdll -o -wall -ic:\anaconda\envs\py34\include -ic:\anaconda\envs\py34\include -c hello.c -o build\temp.win-amd64-3.4\release\hello.o writing build\temp.win-amd64-3.4\release\hello.def c:\anaconda\envs\py34\mingw\bin\gcc.exe -shared -s build\temp.win-amd64-3.4\release\hello.o build\temp.win-amd64-3.4\release\hello.def -lc:\anaconda\envs\py34\libs -lc:\anaconda\envs\py34\pcbuild\amd6 4 -lpython34 -lmsvcr100 -o c:\users\jon\documents\github\cythonfunctions\cython_funcs\cython_funcs\hello.pyd build\temp.win-amd64-3.4\release\hello.o:hello.c:(.text+0x314): undefined reference `__imp__pythreadstate_current' build\temp.win-amd64-3.4\release\hello.o:hello.c:(.text+0x493): undefined reference `__imp__py_nonestruct' build\temp.win-amd64-3.4\release\hello.o:hello.c:(.text+0x97b): undefined reference `__imp_pyexc_importerror' collect2.exe: error: ld returned 1 exit status error: command 'c:\\anaconda\\envs\\py34\\mingw\\bin\\gcc.exe' failed exit status 1 

from searching stackoverflow , google, error occurs when gcc , python versions not both either 32 bit or 64 bit.

i have checked python 64 bit. mingw have, can seen path below, part of python installation. how can check if 64 bit or not? or error due else?

update:

strangely, ipython cythonmagic command here works fine:

http://docs.cython.org/src/quickstart/build.html?highlight=cythonmagic

one way conda remove libpython (this cause distutils not use mingw), , install visual studio 2010, , use compile.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -