简体   繁体   English

无法在ipython中导入模块

[英]Cannot import module in ipython

Hi I am having difficult importing nilearn in ipython 嗨,我在ipython中导入nilearn遇到困难

I can see that the module is available in my conda environment but when I go into ipython and try and import it I get the import error: no module named nilearn and I can see that it is not an available module. 我可以看到该模块在conda环境中可用,但是当我进入ipython并尝试将其导入时,出现导入错误:没有名为nilearn的模块,我可以看到它不是可用模块。

Could anybody please explain where I am going wrong? 有人可以解释我要去哪里错吗?

Many Thanks 非常感谢

Rob

You need to install nilearn first; 您需要先安装nilearn it's not part of the standard Anaconda distro. 它不是标准Anaconda发行版的一部分。

Open the Anaconda command prompt and enter 打开Anaconda命令提示符并输入

pip install nilearn

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM