【问题标题】:Can't install Graphlab create on azure notebook无法在 azure notebook 上安装 Graphlab create
【发布时间】:2017-04-29 16:46:22
【问题描述】:

所以我正在测试https://notebooks.azure.com,我想使用 pip 安装 graphlab,但我收到以下错误:

Collecting https://get.graphlab.com/GraphLab-Create/2.1/xxxxxx@gmail.com/4979-2629-7787-8767-049A-C0BB-5869-FBD6/GraphLab-Create-License.tar.gz Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by ProxyError('Cannot connect to proxy., OSError('Tunnel connection failed: 403 Forbidden',))':/GraphLab-Create/2.1/xxxxxx@gmail.com/4979-2629-7787-8767-049A-C0BB-5869-FBD6/GraphLab-Create-License.tar.gz

我环顾四周,发现一些答案说您必须指定您正在使用的代理,但我无法在 azure paltform 中找到与代理有关的任何内容。

【问题讨论】:

    标签: python azure machine-learning jupyter-notebook graphlab


    【解决方案1】:

    这里有两个问题。

    1) 我无法在 Python 3.5 上安装 GraphLab。 我查看了文档,似乎 GraphLab 目前仅支持 Python 2。 https://turi.com/download/install-graphlab-create-command-line.html

    2) 我无法在 Azure Notebooks 上安装 GraphLab 您看到的代理问题是由于 Azure Notebooks 没有打开网络。 Azure Notebooks 限制对已知站点的访问。我已将 graphlab.com 添加为已知的好站点。您现在可以按照您最初尝试的方式安装 graphlab。

    !pip install --upgrade --no-cache-dir https://get.graphlab.com/GraphLab-Create/2.1/EMAIL/TOKEN//GraphLab-Create-License.tar.gz

    【讨论】:

    • 谢谢@Christopher,现在它的工作就像一个魅力
    • @Christopher,如何将 graphlab.com 作为已知站点添加到 Azure Notebooks?
    • 安装没有问题,但我在导入 graphlab 时得到AttributeError: 'module' object has no attribute 'connect'
    • 没关系。重启内核解决了这个问题。谢谢!
    【解决方案2】:

    我尝试在 Azure 笔记本上为 Python 2.7 和 3.5 安装 graphlab-create 包,但在 Python 3.5 上失败,但在 Python 2.7 上成功。请看下文。

    希望对你有帮助。

    【讨论】:

    • 谢谢你,正如你所说,安装在 python 2.7 上完美运行,但现在当我尝试导入 graphlab 时出现以下错误:AttributeError: 'module' object has no attribute 'connect'
    猜你喜欢
    • 2019-05-23
    • 2016-03-29
    • 2018-10-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多