pyfits和mayvi在astroconda中安装了软件包,但spyd看不到

2024-05-19 22:11:53 发布

您现在位置:Python中文网/ 问答频道 /正文

我安装了astroconda。在通过命令source activate astroconda激活astroconda之后,我键入了spyder。然后在Spyder中我导入了一些包import pyfits和{} 我看到了这个错误:

Traceback (most recent call last): File "", line 1, in ImportError: No module named pyfits

我检查了conda list,pyfits 3.3在安装包列表中。如何告诉Spyder使用这个软件包?在


Tags: import命令sourcemost键入错误callactivate
1条回答
网友
1楼 · 发布于 2024-05-19 22:11:53

默认情况下,astroconda中不包含Spyder。因此,当您加载它时,它使用Ananconda环境中的版本。在

要解决这个问题,您只需在astroconda中安装它:

source activate astroconda
conda install spyder

相关问题 更多 >