在Azure ML中安装Python程序包?

这里类似的问题,但现在在Python软件包上。当前,Azure ML中缺少CVXPY。我还试图让其他求解器(例如GLPK,CLP和COINMP)在Azure ML中工作。

如何在Azure ML中安装Python包?


有关尝试安装Azure ML中找不到的Python软件包的更新。

我按照Peter Pan的指示进行了操作,但是我认为Azure ML中的Anaconda 4和Python 3.5的32位CVXPY文件是错误的,日志和错误在此处

[Information]         Running with Python 3.5.1 |Anaconda 4.0.0 (64-bit)| (default, Feb 16 2016, 09:49:46) [MSC v.1900 64 bit (AMD64)]

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

使用win_amd64文件更新2(在此处粘贴

[Information]         Extracting Script Bundle.zip to .\Script Bundle
[Information]         File Name                                             Modified             Size
[Information]         cvxopt-1.1.9-cp35-cp35m-win_amd64.whl          2017-06-07 01:03:34      1972074
[Information]         __MACOSX/                                      2017-06-07 01:26:28            0
[Information]         __MACOSX/._cvxopt-1.1.9-cp35-cp35m-win_amd64.whl 2017-06-07 01:03:34          452
[Information]         cvxpy-0.4.10-py3-none-any.whl                  2017-06-07 00:25:36       300880
[Information]         __MACOSX/._cvxpy-0.4.10-py3-none-any.whl       2017-06-07 00:25:36          444
[Information]         ecos-2.0.4-cp35-cp35m-win_amd64.whl            2017-06-07 01:03:40        56522
[Information]         __MACOSX/._ecos-2.0.4-cp35-cp35m-win_amd64.whl 2017-06-07 01:03:40          450
[Information]         numpy-1.13.0rc2+mkl-cp35-cp35m-win_amd64.whl   2017-06-07 01:25:02    127909457
[Information]         __MACOSX/._numpy-1.13.0rc2+mkl-cp35-cp35m-win_amd64.whl 2017-06-07 01:25:02          459
[Information]         scipy-0.19.0-cp35-cp35m-win_amd64.whl          2017-06-07 01:05:12     12178932
[Information]         __MACOSX/._scipy-0.19.0-cp35-cp35m-win_amd64.whl 2017-06-07 01:05:12          452
[Information]         scs-1.2.6-cp35-cp35m-win_amd64.whl             2017-06-07 01:03:34        78653
[Information]         __MACOSX/._scs-1.2.6-cp35-cp35m-win_amd64.whl  2017-06-07 01:03:34          449
[Information]         [ READING ] 0:00:00
[Information]         Input pandas.DataFrame #1:
[Information]         Empty DataFrame
[Information]         Columns: [1]
[Information]         Index: []
[Information]         [ EXECUTING ] 0:00:00
[Information]         [ WRITING ] 0:00:00

在哪里import cvxpyimport cvxpy-0.4.10-py3-none-any.whlcvxpy-0.4.10-py3-none-any不工作

How can I use the following wheel files downloaded from here to use the external Python packages not found in Azure ML?

Update about permission problem about importing cvxpy (paste here)

 [Error]         ImportError: No module named 'canonInterface'

where the ZIP Bundle is organised a bit differently, the content of each wheel downloaded to a folder and the content having all zipped as a ZIP Bundle.

Peter Pan

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. 解压缩这些wheel文件,并将这些文件打包在pathcvxpy和中cvxopt使用脚本将其打包为压缩文件。
  3. 将zip文件作为数据集上传,并将其用作脚本包。

如果您使用的是IPython,则还可以尝试通过代码安装Python软件包!pip install cvxpy

还有一些类似的SO线程可能对您有所帮助,如下所示。

  1. 带有脚本捆绑包的Azure ML Python无法导入模块
  2. 如何从IPython中安装Python包?

希望能帮助到你。


更新:

对于Azure ML的IPython界面,您移至NOTEBOOKS选项卡以通过ADD TO PROJECT页面底部的按钮创建笔记本,如下图所示。

在此处输入图片说明

或者,您可以直接登录网站https://notebooks.azure.com以使用它。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

在Azure ML Studio上为Microsoft R Open 3.4.4安装textshape程序包

什么是Azure Devops中的Octopus程序包库

如何在Azure Pipelines中缓存pip程序包

Azure和SSIS程序包

NodeJS Azure Sequelize SQL Server-错误:请手动安装繁琐的程序包

安装Microsoft.Azure.Mobile.Client NuGet程序包后生成错误

Azure DevOps:无法从Azure Pipeline中的源加载nuget程序包

访问Azure Functions中的私有Nuget服务器中托管的Nuget程序包

如何将Python程序包从Nexus迁移到Azure DevOps

使用Python诗歌将程序包发布到Azure DeveOps工件

如何在Azure管道中更正程序包版本名称并删除内部版本ID

Azure:导入“ src”中尚不存在的程序包

将几个管道作业的结果合并到Azure Web应用程序包中

无法在Azure Batch中解压缩应用程序包

在其他组织项目中安装发布到Azure DevOps NPM Artifacts的程序包时出错

使用Azure Devops发布Nuget程序包

无法从Azure DevOps Artifact Feed访问Chocolatey程序包

找不到Azure DevOps NuGet程序包

如何批量下载Azure Artifacts程序包?

NuGet程序包不能编译Azure CSX

在Azure函数中使用自己的程序包(工件)?

Azure发布程序包不包括所有文件

Azure github部署和自动程序包还原

无法在Azure ml中安装R库

Wix安装程序包中的if语句

Access Is Denied错误将程序包推送到我的Azure Devops工件nuget feed中

在Jenkins构建期间,Nuget恢复返回401未经授权的Azure DevOps工件提要中的程序包

Azure DevOps项目管道无法访问其他项目中的Artifact Feed中的NuGet程序包

如何将SSH.NET NuGet程序包添加到Azure Functions v2.0中?