在ipython中为AplPy导入错误

时间:2015-11-24 08:08:01

标签: python ipython aplpy

我试图通过在ipython上导入来启动OSX上的AplPy。 我使用pip安装了AplPy,然后在我输入的终端中安装了:

 ipython --pylab 
 import aplpy 

但是我只得到以下输出:

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/IPython/kernel/_
_init__.py:13: ShimWarning: The `IPython.kernel` package has been deprecated.
You should import from ipykernel or jupyter_client instead.
"You should import from ipykernel or jupyter_client instead.", ShimWarning)
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-3-429eb0b27113> in <module>()
----> 1 import aplpy

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-        packages/aplpy/__init__.py in <module>()
 12 if not _ASTROPY_SETUP_:
 13 
---> 14     from .core import FITSFigure
 15     from .rgb import make_rgb_image, make_rgb_cube
 16 

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-    packages/aplpy/core.py in <module>()
 12 
 13 import matplotlib.pyplot as mpl
---> 14 import mpl_toolkits.axes_grid.parasite_axes as mpltk
 15 from astropy.extern import six
 16 

/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mpl_toolkits/axes_grid/__init__.py in <module>()
  2                         unicode_literals)
  3 
----> 4 from matplotlib.externals import six
  5 
  6 from . import axes_size as Size

ImportError: No module named externals

我无法在网上找到一个名为externals的模块,可能会丢失,是否有其他人知道发生了什么?

0 个答案:

没有答案