我试图在 python 2.7 上获取 atpy。我从下载 ATpy0.9.6
https://pypi.python.org/pypi/ATpy/0.9.6
然后 tar 并运行:
cd ATpy0.9.6 sudo python setup.py install
事情似乎运作良好。
但是当我尝试在 python 上导入 atpy 时,我总是收到以下错误消息:
ImportError:没有名为 astropy.io 的模块
更确切地说,
>>> import atpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/atpy/__init__.py", line 1, in <module>
from .basetable import Table, TableSet, VectorException
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/atpy/basetable.py", line 15, in <module>
from . import registry
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/atpy/registry.py", line 164, in <module>
from . import fitstable
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/atpy/fitstable.py", line 8, in <module>
from astropy.io import fits
ImportError: No module named astropy.io
>>>
谁能帮我找出问题所在?