我读到关于python+mongo+monary对于使用mongodb的numpy panda处理非常快
Alex Gaudio的博客http://alexgaudio.com/2012/07/07/monarymongopandas.html
我正在尝试安装Monary驱动程序,我是从
https://pypi.python.org/pypi/Monary在Windows 64位上。我有anancodapython2.7发行版。
python./setup.py安装
我得到以下冲突错误。

monary/cmonary.c:46:20: error: conflicting types for 'OBJECTID'
In file included from e:\anaconda\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.0/
../../../../x86_64-w64-mingw32/include/windef.h:137:0,
                 from e:\anaconda\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.0/
../../../../x86_64-w64-mingw32/include/windows.h:59,
                 from mongodb-mongo-c-driver-74cc0b8/src/mongo.h:25,
                 from monary/cmonary.c:8:
e:\anaconda\mingw\bin\../lib/gcc/x86_64-w64-mingw32/4.7.0/../../../../x86_64-w64
-mingw32/include/winnt.h:457:5: note: previous declaration of 'OBJECTID' was her
e
monary/cmonary.c: In function 'monary_load_timestamp_value':
monary/cmonary.c:247:9: warning: dereferencing type-punned pointer will break st
rict-aliasing rules [-Wstrict-aliasing]
monary/cmonary.c: In function 'monary_load_query':
monary/cmonary.c:519:9: warning: unused variable 'total_values' [-Wunused-variab
le]
error: command 'E:\\Anaconda\\Scripts\\gcc.bat' failed with exit status 1

我可以把一元中objectid的所有引用都改成bobjectid之类的东西,去掉重新定义或未定义objectid之前,我不知道它的副作用是什么?寻找Monary的答案或Windows安装

最佳答案

您需要安装mingw(http://www.mingw.org/)并使用它安装gcc。然后,您需要将c:\mingw\bin(或任何安装路径)添加到path变量中,如下所示:
libgmp-10.dll is missing

关于python - python monary 0.2.3(mongo monary driver):在Windows 64bit(Anaconda发行版)上安装错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26257315/

10-11 11:20