我想在Spyder Anaconda中运行一些代码。我认为它和导入代码一样简单,但是我得到了一条错误消息:
ModuleNotFoundError:没有名为“image_registration”的模块
我知道这意味着image_registration并不包括在Spyder已经拥有的内容中,但我不知道如何添加它。
from image_registration import chi2_shift
from image_registration.fft_tools import shift发布于 2019-04-27 07:04:55
将Anaconda脚本路径(Default=C:\Users\userna**\Anaconda3\Scripts)添加到环境变量中,打开命令提示符并键入pip.exe install module_name(在本例中为pip.exe install image_registration 安装模块映像注册 )
发布于 2019-04-26 05:56:38
请在anaconda提示符中试用以下步骤
1. conda create -n myenv
2. activate myenv
3. pip install image_registration
4. conda install spyder
5. spyder如果您已经在某个环境中安装了image_registration包,则可以激活该环境并尝试从激活的环境中打开spyder。
https://stackoverflow.com/questions/55832860
复制相似问题