简体   繁体   中英

How can install additional python packages in Azure Machine Learning Studio?

Hey I am trying to install dash and jupyter-dash in Azure Machine Learning Studio (New- not classic). I opened terminal and installed them using pip install and they successully were installed upon checking with pip freeze . However when I open notebook I still get error: ModuleNotFoundError .

Is there a way to add those missing libraries that I need in order to run the script in my notebook?

There are limitations when installing the additional Python packages in Azure ML Studio and therefore the only possible way to add custom python modules, you can zip all packages and modules.

For example, to install cvxpy ,

  1. Download wheel of cvpxy and the dependencies.

  2. Decompress the files and package it in in cvpxy path as a zip file including script.

  3. You can then upload the zip as data set.

If you are using IPython, you also can try to install the Python Package via the code.pip install cvxpy.

There are some similar SO threads which may be helpful for you, as below.

Azure ML Python with Script Bundle cannot import module

How to install a Python package from within IPython?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM