Error trying to install graphlab
当我尝试导入graphlab时,出现ImportError。我正在使用OSX Yosemite 10.10.4的Macbook上。我确实有anaconda,但是我的envs文件夹是空的。根据一些研究,我尝试使用conda config --add create_default_packages graphlab-create。但这并没有做任何事情。所以,我尝试了
1 2 3 4 5 | pip install graphlab-create --no-cache-dir Collecting graphlab-create Downloading GraphLab-Create-1.6.1.tar.gz (39.9MB) 100% |a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?a–?| 39.9MB 136kB/s |
这是命令python setup.py egg_info:
的完整输出
1 2 3 4 5 6 7 8 9 | 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安装它。它对我有用!