【问题标题】:Error trying to install graphlab尝试安装 graphlab 时出错
【发布时间】:2015-10-25 16:20:54
【问题描述】:

当我尝试导入 graphlab 时,我得到 ImportError。我在使用 OSX Yosemite 10.10.4 的 macbook 上。我确实有 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 macos ipython-notebook anaconda graphlab


    【解决方案1】:

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

    【讨论】:

    • 谢谢。会尝试的。有没有简单的降级方法?我需要删除然后安装早期版本吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-18
    • 2017-09-15
    • 2017-10-11
    • 2015-01-17
    • 2013-11-13
    • 2018-03-05
    相关资源
    最近更新 更多