我正在尝试在 Spyder Anaconda 中运行一些代码。我认为这就像在代码中看到的导入它一样简单,但我收到一条错误消息:
ModuleNotFoundError:没有名为“image_registration”的模块
我知道这意味着 image_registration 不包含在 Spyder 已经拥有的内容中,但我不知道如何添加它。
from image_registration import chi2_shift
from image_registration.fft_tools import shift