MachineLearningNotebooks icon indicating copy to clipboard operation
MachineLearningNotebooks copied to clipboard

Way's to install pip packages

Open kuanlu95 opened this issue 7 years ago • 2 comments

Is there any way to install some package from a particular --index-url while others from the default source?

kuanlu95 avatar Jun 13 '19 18:06 kuanlu95

You should be able to do this for example for script run. The conda dependency specification contains https://pypi.python.org/simple as extra index by default.

from azureml.core import ScriptRunConfig
from azureml.core.conda_dependencies import CondaDependencies

cd = CondaDependencies.create(pip_indexurl="custom-index")

src = ScriptRunConfig(".","example.py")
src.run_config.conda_dependencies = cd

rastala avatar Jun 20 '19 16:06 rastala

Closed per rastala

kenkadota avatar Jul 03 '19 14:07 kenkadota