我为python2.7安装了Anaconda发行版(一切都很好),然后我在SunPy安装之后安装了SunPy安装
要安装SunPy的额外受抚养人,运行:
conda update astropy
pip install suds若要安装,请运行:
pip install sunpy但我能不能像这样运行:
from astropy.io import fits
file = fits.open("file.fits")
file = file[0].data在安装SunPy和更新Astropy之前,我有一个警告没有出现
警告: AstropyDeprecationWarning: enabled_record_valued_keyword_cards参数在文件'C:\Users\nandhos.astropy\config\astropy.cfg‘的io.fits部分被废弃。代之以“enable_record_valued_keyword_cards”一节。astropy.config.configuration
很明显,一切都很好,只是我想知道为什么会出现这个消息。如何使用"enable_record_valued_keyword_cards“一节适合于其他配置?
发布于 2014-07-21 07:45:44
如果您以前没有编辑过~/.astropy/config/astropy.cfg文件,那么消除警告的最简单的方法就是删除它。这应该在后续版本的astropy中得到修正。
https://stackoverflow.com/questions/24852262
复制相似问题