一.GraphLab可以用于推荐系统。
二.如何安装GraphLab
1.GraphLab只能在python2.7环境下运行
切换新的虚拟环境
conda create --name 你的新虚拟环境名 python=2.7
2.切换为刚才的环境
conda activate 你的新虚拟环境
3.安装GraphLab创建
这个是官网GraphLab提供的下载方式
点击
Install your licensed copy of GraphLab Create
pip install --upgrade --no-cache-dir https://get.graphlab.com/GraphLab-Create/2.1/2452952178@qq.com/68F0-13C8-DA57-C650-6737-8037-3DCA-A086/GraphLab-Create-License.tar.gz
4.我们想要在Jupyter Notebook中使用我们刚才的虚拟环境
conda install ipykernel
5.把环境写入notebook的kernel中
python -m ipykernel install --user --name 虚拟环境 --display-name "python 虚拟环境"
比如下面
python -m ipykernel install --user --name mywcy --display-name "python mywcy"
6.打开Jupyter Notebook就可以看到刚才的环境了
7.导入时会标错
import graphlab
graphlab.get_dependencies()
graphlab.graphlab.product_key.set_product_key("Your Key") #把Your Key替换成你的Key
解决: