python 没有找到模块,虽然是通过 conda 安装的
python doesnt find module, although installed via conda
Python 没有找到 'xarray',尽管我是通过 conda 安装的。
如何解决?
看起来您在基础 conda 环境中安装了 xarray
,但您在 mlenv 环境中调用了 python。在尝试使用 conda 安装 xarray
之前,您需要将活动环境从基础切换到您正在使用的环境。
在linux中:
source activate mlenv
conda install xarray
在windows中:
activate mlenv
conda install xarray
Python 没有找到 'xarray',尽管我是通过 conda 安装的。 如何解决?
看起来您在基础 conda 环境中安装了 xarray
,但您在 mlenv 环境中调用了 python。在尝试使用 conda 安装 xarray
之前,您需要将活动环境从基础切换到您正在使用的环境。
在linux中:
source activate mlenv
conda install xarray
在windows中:
activate mlenv
conda install xarray