python - 尝试安装 graphlab 时出错

标签 python macos jupyter-notebook anaconda graphlab

当我尝试导入 graphlab 时,出现 ImportError。我的 MacBook 使用 OSX Yosemite 10.10.4。我确实有 anaconda,但我的 envs 文件夹是空的。根据一些研究,我尝试使用 conda config --add create_default_packages graphlab-create。但这并没有起到任何作用。所以,我尝试了

pip install graphlab-create --no-cache-dir

Collecting graphlab-create
  Downloading GraphLab-Create-1.6.1.tar.gz (39.9MB)
    100% |████████████████████████████████| 39.9MB 136kB/s 

这是命令 python setup.py Egg_info 的完整输出:

Traceback (most recent call last):
  File "<string>", line 20, in <module>
  File "/private/var/folders/f4/wdrwxpcj0x95cdhkx5qpfbvr0000gp/T/pip-build-k0zi9aqh/graphlab-create/setup.py", line 87
    print ""
           ^
SyntaxError: Missing parentheses in call to 'print'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/f4/wdrwxpcj0x95cdhkx5qpfbvr0000gp/T/pip-build-k0zi9aqh/graphlab-create

看起来一切顺利,下载 100%,但随后出现上述错误。

最佳答案

您似乎正在尝试使用 Python 3 进行安装。尝试使用 Python 2.7.X 安装它。它对我有用!

关于python - 尝试安装 graphlab 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33331973/

相关文章:

python - 如何根据某个奇数n对给定行之前和之后的pandas数据帧列进行平均?

grails - session 变量不符合GXT

python - py2app 构建的应用程序在其他机器上显示 `ERROR: pygame.macosx import FAILED`

c++ - 无法在 OSX Yosemite 上编译 googletest

python - 在 Jupyter Lab 中,在 Python 控制台中执行编辑器代码

Python 3 Jupyter 上的多处理

python - 如何在 python 中使用 MLE 来拟合双指数分布?

python - 如何添加多个具有固定值的新列?

python - Keras:class_weight 实际上试图平衡什么?

python - 阻止用户在jupyter笔记本中导入os模块