我试着在Python2.7上使用atpy。我从PY0.9.6下载
然后涂上焦油,然后跑:
cd在PY0.9.6
sudo python setup.py安装
事情似乎进展顺利。
但是当我试图在python上导入atpy时,总是收到这样的错误消息:
重要错误:没有名为astropy.io的模块
更准确地说>>> import atpy
Traceback (most recent call last):
File "", line 1, in
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/atpy/__init__.py", line 1, in
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
from . import registry
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/atpy/registry.py", line 164, in
from . import fitstable
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/atpy/fitstable.py", line 8, in
from astropy.io import fits
ImportError: No module named astropy.io
>>>
有人能帮我解决这个问题吗?