Install Python Packages in Azure ML?

前端 未结 3 1205
Happy的楠姐
Happy的楠姐 2020-12-18 08:12

Similar question as here but now on Python packages. Currently, the CVXPY is missing in Azure ML. I am also trying to get other solvers such as GLPK, CLP and COINMP working

3条回答
  •  无人及你
    2020-12-18 09:00

    According to the Limitations and Technical Notes of Execute Python Script tutorial, the only way to add custom Python modules is via the zip file mechanism to package the modules and all dependencies.

    For example to install CVXPY, as below.

    1. Download the wheel file of CVXPY and its dependencies like CVXOPT.
    2. Decompress these wheel files, and package these files in the path cvxpy and cvxopt, etc as a zipped file with your script.
    3. Upload the zip file as a dataset and use it as the script bundle.

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

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

    1. Azure ML Python with Script Bundle cannot import module
    2. How to install a Python package from within IPython?

    Hope it helps.


    Update:

    For IPython interface of Azure ML, you move to the NOTEBOOKS tab to create a notebook via ADD TO PROJECT button at the bottom of the page, as the figure below.

    Or you can directly login to the website https://notebooks.azure.com to use it.

提交回复
热议问题