我正在尝试安装weka python包装器,我发现首先我必须安装javabridge
包。但是当我试图安装它时:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/ts/vm7w_pd55xscxfb6x9q_gbrr0000gn/T/pip-build-rx5vuvku/javabridge/setup.py", line 155
except OSError, e:
^
SyntaxError: invalid syntax
----------------------------------------
命令“python setup.py egg_info”失败,错误代码为1 / private / var / folders / ts / vm7w_pd55xscxfb6x9q_gbrr0000gn / T / pip-build-rx5vuvku / javabridge
我正在运行mac os el capitan。
答案 0 :(得分:0)
在这个阶段,你需要Python 2.7,最多javabridge 1.0.11用于python-weka-wrapper库(1.0.14不起作用!)。您可以按如下方式安装javabridge 1.0.11:
sudo pip install https://pypi.python.org/packages/source/j/javabridge/javabridge-1.0.11.tar.gz