我在测试https://notebooks.azure.com,并尝试使用pip安装graphlab,但遇到了以下错误:
Collecting https://get.graphlab.com/GraphLab-Create/2.1/[email protected]/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/[email protected]/4979-2629-7787-8767-049A-C0BB-5869-FBD6/GraphLab-Create-License.tar.gz
我查了一些资料,发现有些回答说需要指定你使用的代理,但我无法在Azure平台上找到与代理有关的任何设置。
回答:
这里有两个问题。
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