在 python 3.6.1 中安装 GraphLab 包 [英] Install GraphLab Package in python 3.6.1

查看:45
本文介绍了在 python 3.6.1 中安装 GraphLab 包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试安装GraphLab,但结果变成了这样:

I tried to install GraphLab, but the result became like this:

属性错误:模块graphlab"没有属性connect"

我的python版本是3.6.1.我也试过代码:

My python version is 3.6.1. And I also tried the code:

python -m pip install connect

但是没有用.

有谁知道如何解决这个问题?谢谢!

Does anyone know how to solve this problems? Thanks!

推荐答案

当系统上的 python 版本与 Anaconda 不同时会发生这种情况.Anaconda Python 正在从系统上的常规 Python 中混合导入.确保which python"指向正确的Python(无论您安装Anaconda Python的地方.类似地which pip"否则您将希望从[安装Anaconda的地方]/bin/python运行python(或pip).您可以试试 Dato Launcher ,它会尝试为您设置好一切.

This happens when Version in python on system is different from Anaconda. Anaconda Python is mixing in imports from the regular Python on the system. Make sure "which python" points to the right Python (whereever you installed Anaconda Python. And similarly "which pip" Otherwise you will want to run python (or pip) from [where ever you installed Anaconda]/bin/python. You can try the Dato Launcher which tries to set it all up for you.

另外,如果你没有使用 Anaconda,在 Graphlab 支持安装上,他们只推荐了两个安装选项,一个在 Anaconda 上,另一个在 Virtualenv 上.我个人建议您使用 Anaconda for Graphlab,因为大部分开发支持和学习完全基于 Anaconda 的使用.您可以点击此链接安装 Graphlab 和 Anaconda 此处.我希望这会有所帮助.

Also, if you are not using Anaconda, on Graphlab support of installation, they recommended only two option for installation, one on Anaconda and the other on Virtualenv. I personally recommend you to use Anaconda for Graphlab as most of the development support and learning is totally based on Anaconda usage. You may follow this link to install Graphlab and Anaconda Here. I hope this helps.

注意:在安装 Anaconda 时,Python 版本可能与 Python 2.7 不同,但安装 Anaconda 后,您可以更新到您选择的最新版本.

Note: In installation of Anaconda, Python Version can be different like Python 2.7, but after installation of Anaconda, you can update to latest version of your choice.

这篇关于在 python 3.6.1 中安装 GraphLab 包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆