Anaconda3.x下安装Graphlab-Create

本文详细介绍如何在Anaconda环境下安装GraphLab-Create,并解决安装过程中遇到的依赖问题。包括如何为Anaconda3.x创建Python2.x环境,以及通过执行特定命令解决importgraphlab时出现的DLL未找到错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.youkuaiyun.com/hpdlzu80100/article/details/75269876
http://blog.youkuaiyun.com/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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值