无法从“astropy.config.configuration”导入名称“update_default_config”

问题描述 投票:0回答:1

当我从spectrum-cube模块导入SpectralCube时,出现以下错误: “无法从 'astropy.config.configuration'(/Users/xxx/opt/anaconda3/lib/python3.9/site-packages/astropy/config/configuration.py) 导入名称 'update_default_config'”。 我已经使用这个包有一段时间了,就是在这段时间开始出错,是我的包版本问题吗?我更新了 astropy 包和spectrum-cube 包。但这个错误仍然存在。 我该怎么办?

python config astropy spectral
1个回答
0
投票

看起来 astropy 删除了该功能。

https://docs.astropy.org/en/stable/changelog.html#id1

© www.soinside.com 2019 - 2024. All rights reserved.