不能导入ephem

时间:2012-01-14 03:38:47

标签: python pyephem

我在windows下导入ephem时遇到问题。我认为这是一个32/64位的问题。

Z:\>python
Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ephem
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\ephem\__init__.py", line 5, in <module>
    import ephem._libastro as _libastro
ImportError: DLL load failed: %1 is not a valid Win32 application.
>>>

如果我能避免它,我宁愿在同一台机器上没有32位和64位python。

谢谢,
KR

1 个答案:

答案 0 :(得分:5)

http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyephem尝试pyephem-3.7.5.1.win-amd64-py2.7.exe。