Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

ImportError: Missing required package "azureml-dataset-runtime"

未关闭
#1,797 9 条评论 6 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
20/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
azure, jupyter-notebook, pandas, python

调研方向

使用 notebook 的 conda 设置以及所示的 Dataset.get_by_name/to_pandas_dataframe 单元格作为复现路径。确认每个 %pip install 由哪个 kernel 和 interpreter 接收,然后记录一个可复现的依赖项修复方案;当该单元格能够在没有缺少软件包错误的情况下运行时即完成。

由索引模型根据 Issue 内容生成。

描述

I am having a weird issue in Azure ML.

I like to work in isolated conda environments with its own kernel, so for each little project I create my own environment and kernel like this:


conda create — name myenv
conda activate myenv
conda install pip
conda install ipykernel
python -m ipykernel install --user --name myenv  --display-name myenv

This creates the environment and the kernel, and then it's totally empty which means I have to install all modules myself. (including Azure SDK)

So I tried to install the following:

%pip install azureml
%pip install azureml-core
%pip install pandas
%pip install azureml-dataset-runtime --upgrade

And then I tried to run a simple Load Dataset code

# azureml-core of version 1.0.72 or higher is required
# azureml-dataprep[pandas] of version 1.1.34 or higher is required
from azureml.core import Workspace, Dataset

subscription_id = 'xx'
resource_group = 'mlplayground'
workspace_name = 'mlplayground'

workspace = Workspace(subscription_id, resource_group, workspace_name)

dataset = Dataset.get_by_name(workspace, name='BelgiumRealEstate')
df=dataset.to_pandas_dataframe()

But then I get this error:

Missing required package "azureml-dataset-runtime", which can be installed by running: "/anaconda/envs/LightGBM/bin/python" -m pip install azureml-dataset-runtime --upgrade

And Yes, I tried to run this command, but got errors when trying to install it:

1

Can someone please enlighten me? Am I doing something wrong?

Thanks a lot.

主要语言
Jupyter Notebook
星标
4.4k
派生
2.6k
PR 合并指标
30 天内没有已合并 PR

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Azure/MachineLearningNotebooks 的其他 Issue

查看 Azure/MachineLearningNotebooks 的全部 Issue

相似的 Issue

更多 DevTools Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。