Azure / Azure/MachineLearningNotebooks

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

Aberta
#1,797 9 comentários 6 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Jupyter Notebook
Estrelas
4.4k
Forks
2.6k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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](https://user-images.githubusercontent.com/6962857/184322486-58cfe866-83cc-4cd3-a36e-82d29780a9a4.png)

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

Thanks a lot.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

Use a configuração do conda do notebook e a célula mostrada de Dataset.get_by_name/to_pandas_dataframe como caminho de reprodução. Verifique qual kernel e interpretador recebem cada %pip install e documente uma correção reproduzível das dependências; está concluído quando a célula é executada sem o erro de pacote ausente.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
azure, jupyter-notebook, pandas, python
Domínio
devtools, machine-learning
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
20/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.