我正在尝试使用我一直在阅读的快速而性感的Monary包来测试MongoDB。我已经在安装了Anaconda 64bit python堆栈的Windows 7 64位机器上尝试了一个点子和手动安装,并收到以下错误:
C:\Users\cpye\Desktop\Monary-0.2.3.tar\dist\Monary-0.2.3\Monary-0.2.3>python
Python 2.7.7 |Anaconda 2.0.1 (64-bit)| (default, Jun 11 2014, 10:40:02) [MSC v.1500 64 bit (AMD64)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://binstar.org
>>> import monary
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "monary\__init__.py", line 4, in <module>
from .monary import Monary
File "monary\monary.py", line 33, in <module>
_load_cmonary_lib()
File "monary\monary.py", line 31, in _load_cmonary_lib
cmonary = CDLL(cmonaryfile)
File "C:\Anaconda\lib\ctypes\__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 193] %1 is not a valid Win32 application
>>>
一旦我解决了MinGW和gcc问题,设置就会很好。我不确定什么叫做“不是一个有效的Win32应用程序”的任何建议?
谢谢!
答案 0 :(得分:0)
该错误通常意味着您正在混合使用64位和32位可执行文件。也许尝试使用32位版本的Anaconda。