我一直收到如下错误:
命令"python setup.py egg_info"失败,错误代码1在/ private/tmp/pip-build-dg6i9xjw/apache-beam /
我尝试安装easy_install和其他东西,仍然得到相同的错误...
================================================== =
这是我的完整输出:
sudo -H pip install apache-beam
Collecting apache-beam
Downloading apache-beam-2.1.1.zip (859kB)
100% |????????????????????????????????| 860kB 829kB/s
Complete output from command python setup.py egg_info:
Error compiling Cython file:
------------------------------------------------------------
...
For performance reasons, doesn't actually impose an ordering
on unequal values (always returning 1).
"""
if type(left) is not type(right):
return cmp(type(left), type(right))
^
------------------------------------------------------------
apache_beam/utils/windowed_value.py:83:16: undeclared name not builtin: cmp
Traceback (most recent call last):
File "<string>", line 1, in <module>
File …Run Code Online (Sandbox Code Playgroud)