Anaconda3下安装GraphLab Create

1、GraphLab Create根据下面文档说明,只能对应Python2.7.x和Anaconda2.x

https://turi.com/download/install-graphlab-create-command-line.html



2、想到建一个python2.7的虚拟环境

conda create -n gl-env python=2.7




3、注册GraphLab,获取用户名密码

(1)地址:https://turi.com/


(2)coursera students--->install graphlab create


(3)academic license:


(4)填好后,会出现如下页面:


(5)收到如下确认邮件:


产品码:8862-18BC-A187-AB2E-848C-05BC-6011-A1AD


4、安装GraphLab

(1)进入anaconda2环境安装

activate gl-env
conda update pip
pip install --upgrade --no-cache-dir https://get.graphlab.com/GraphLab-Create/2.1/your registered email address here/your product key here/GraphLab-Create-License.tar.gz
conda install ipython-notebook

对应我这里就是:

pip install --upgrade --no-cache-dir https://get.graphlab.com/GraphLab-Create/2.1/[email protected]/8862-18BC-A187-AB2E-848C-05BC-6011-A1AD/GraphLab-Create-License.tar.gz

出现如下错误:


Installing collected packages: certifi, genson, multipledispatch, boto, jmespath, python-dateutil, botocore, docutils, bcdoc, colorama, pyasn1, rsa, awscli, functools32, jsonschema, psclient, backports.ssl-match-hostname, singledispatch, backports-abc, tornado, graphlab-create, GraphLab-Create-License
  Found existing installation: certifi 2018.4.16
Cannot uninstall 'certifi'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.


(2)certifi问题解决

见我的博文:GraphLab安装出错:Cannot uninstall 'certifi'. It is a distutils installed project


(3)jupyter notebook进入gl-env环境,导入graphlab,出现如下错误:


解决方法见我的博文:

GraphLab安装出错(2):ACTION REQUIRED: Dependencies libstdc++-6.dll and libgcc_s_seh-1.dll not found


5、登陆新建的python2环境:

(1)打开Anaconda prompt

输入:activate gl-env

再输入:jupyter notebook



(2)这时,打开的notebook页面需要输入token value

再打开另外一个Anaconda Prompt页面,输入:jupyter notebook list

将token value输入到notebook登陆页面,即可登陆。而且可以新建python2的工程。



6、加载graphlab库成功



参考文章:

Anaconda3.x下安装Graphlab-Create

如何安装GraphLab Create

猜你喜欢

转载自blog.csdn.net/weixin_41770169/article/details/80393540
今日推荐