1.首先,我们可以通过下载Anaconda2.x,然后按照https://turi.com/download/install-graphlab-create-command-line.html的步骤提示安装Graphlab-Create,然后控制台输入jupyter notebook就可以启动jupyter编译器了。
可以提示参考:https://www.imooc.com/article/18094?block_id=tuijian_wz
2.如果我下载的是Anaconda3.x怎么办呢?
首先当我安装完Anaconda3.x,我以为就可以直接导入import graphlab了,会出现下面的错误:
此时我们需要安装GraphLab-Create。
按照网页https://turi.com/download/install-graphlab-create-command-line.html提示,只能是Python2.x和Anaconda2.x,那怎么办呢?
我们可以通过构建一个虚拟环境,Create a new conda environment with Python 2.7.x,具体命令行如下:
conda create -n gl-env python=2.7
这样就可以了,创建了一个python2.x的环境,然后按照上面指导执行相关命令:
1.activate gl-env
2.conda update pip
3.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
4.conda install ipython-notebook
最后,只要在命令行输入jupyter notebook就可以打开网页编辑器了。
下一次打开网页编辑器可以是:
1.打开Anaconda Prompt,输入activate gl-env
2.然后输入jupyter notebook就可以了。
但是,问题又来了?
import graphlab时报错:
ACTION REQUIRED: Dependencies libstdc++-6.dll and libgcc_s_seh-1.dll not found.
1. Ensure user account has write permission to C:\Users\pande\Anaconda2\envs\gl-env\lib\site-packages\graphlab
2. Run graphlab.get_dependencies() to download and install them.
3. Restart Python and import graphlab again.
By running the above function, you agree to the following licenses.
* libstdc++: https://gcc.gnu.org/onlinedocs/libstdc++/manual/license.html
* xz: http://git.tukaani.org/?p=xz.git;a=blob;f=COPYING
解决方法:
http://blog.csdn.net/hpdlzu80100/article/details/75269876
http://blog.csdn.net/u013569000/article/details/53886656
记得: 在Python命令行中执行graphlab.get_dependencies()时,重新编译了.py文件,得到了更新后的.pyc文件。
主要参考文章:
https://turi.com/download/install-graphlab-create-command-line.html
其他参考文章:
http://www.bubuko.com/infodetail-2218077.html
https://www.jianshu.com/p/7d6caa1eef69