与这里类似的问题,但现在在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 cvxpy
,import cvxpy-0.4.10-py3-none-any.whl
或cvxpy-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.
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.
CVXPY
and its dependencies like CVXOPT
.cvxpy
和中cvxopt
,并使用脚本将其打包为压缩文件。如果您使用的是IPython,则还可以尝试通过代码安装Python软件包!pip install cvxpy
。
还有一些类似的SO线程可能对您有所帮助,如下所示。
希望能帮助到你。
更新:
对于Azure ML的IPython界面,您移至NOTEBOOKS
选项卡以通过ADD TO PROJECT
页面底部的按钮创建笔记本,如下图所示。
或者,您可以直接登录网站https://notebooks.azure.com
以使用它。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句