【问题标题】:pyfits and mayvi installed package in astroconda but not visible by spyderpyfits 和 mayvi 在 astroconda 中安装了软件包,但 spyder 不可见
【发布时间】:2017-01-02 19:57:05
【问题描述】:

我已经安装了 astroconda。通过命令source activate astroconda 激活astroconda 后,我输入了spyder。然后在 Spyder 我导入了一些包 import pyfitsfrom mayavi import mlab 我看到了这个错误:

Traceback(最近一次调用最后一次):文件“”,第 1 行,in ImportError:没有名为 pyfits 的模块

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

【问题讨论】:

    标签: python anaconda python-import spyder pyfits


    【解决方案1】:

    Spyder 默认不包含在astroconda 中。所以,当你加载它时,它会使用 Ananconda 环境中的版本。

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

    source activate astroconda
    conda install spyder
    

    【讨论】:

      猜你喜欢
      • 2020-12-01
      • 1970-01-01
      • 2021-12-05
      • 2020-05-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-08
      • 2014-05-10
      相关资源
      最近更新 更多