MachineLearningNotebooks: Failed to Install azureml-sdk on Windows

Hi,

I have Python 3.7.4 installed on my Windows desktop. I was trying to install the azureml python sdk using pip install azureml-sdk, but it has error: ERROR: Could not find a version that satisfies the requirement azureml-dataprep-native<14.0.0,>=13.0.0 (from azureml-dataprep<1.2.0a,>=1.1.9a->azureml-sdk) (from versions: none) ERROR: No matching distribution found for azureml-dataprep-native<14.0.0,>=13.0.0 (from azureml-dataprep<1.2.0a,>=1.1.9a->azureml-sdk)

Do you know how to resolve it? Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (2 by maintainers)

Most upvoted comments

confirm that rolling back to pip 19.0 solves the problem.

confirm that rolling back to pip 19.0 solves the problem.

I’m deploying a package on azure web app using kudu – i dont see how I can change the behavior of the pip upgrade command in the script. Is it configurable ? I’d like to pin the pip version if its possible

issue filed here https://github.com/pypa/pip/issues/7632. I am using older version of pip (19.) for a workaround.

it’s year 2021, it’s still happening.

pip install azureml-sdk[notebooks,automl,explain]

image

I’m following Azure Machine Learning tutorial

pip version 20.1.1 python 3.7.8 OS: Windows 10

I do not want to set my pip version to an outdated version. Is there any proper way to fix it?

In case you are experiencing this error while using Azure Machine Learning Compute (AML Compute):

WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
ERROR: Could not find a version that satisfies the requirement dotnetcore2>=2.1.9 (from azureml-dataprep[fuse,pandas]~=1.1->-r /azureml-environment-setup/condaenv.k6rqgf2r.requirements.txt (line 12)) (from versions: none)
ERROR: No matching distribution found for dotnetcore2>=2.1.9 (from azureml-dataprep[fuse,pandas]~=1.1->-r /azureml-environment-setup/condaenv.k6rqgf2r.requirements.txt (line 12))

Manually setting the pip version back to 19 for the Conda environment works:

train_env = Environment(name="mytrainenv")
train_conda_deps = CondaDependencies.create(pip_packages=['sklearn', ...])

# Manually downgrade to pip 19.x
train_conda_deps.add_conda_package("pip==19.3.1")

train_env.python.conda_dependencies = train_conda_deps
train_env.docker.enabled = True
train_env.docker.base_image = DEFAULT_CPU_IMAGE

I am getting the following similar to the issue above, and I went to the document and failed to see the fix, Can you please help?

 Downloading azureml_dataprep_native-13.2.0-cp37-cp37m-manylinux1_x86_64.whl (1.3 MB)
ERROR: Could not find a version that satisfies the requirement dotnetcore2>=2.1.9 (from azureml-dataprep[fuse]<1.2.0a,>=1.1.35a->azureml-sdk[notebooks]) (from versions: none)
ERROR: No matching distribution found for dotnetcore2>=2.1.9 (from azureml-dataprep[fuse]<1.2.0a,>=1.1.35a->azureml-sdk[notebooks])