cql是否支持python3?

我尝试使用pip安装,但失败了。

rabit@localhost:/usr/bin> pip-3.3 install cql
^CDownloading/unpacking cql
Operation cancelled by user
Storing complete log in /home/rabit/.pip/pip.log
rabit@localhost:/usr/bin> sudo pip-3.3 install cql
root's password:
Downloading/unpacking cql
  Downloading cql-1.4.0.tar.gz (76kB): 76kB downloaded
  Running setup.py egg_info for package cql

Downloading/unpacking thrift (from cql)
  Running setup.py egg_info for package thrift
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/tmp/pip-build/thrift/setup.py", line 45
        except DistutilsPlatformError, x:
                                     ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/tmp/pip-build/thrift/setup.py", line 45

    except DistutilsPlatformError, x:

                                 ^

SyntaxError: invalid syntax

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build/thrift


实际上,cql依赖于Thrift,后者可能不支持python3

任何解决方案?

最佳答案

Thrift确实确实不支持Python 3,它的元数据被标记为仅支持Python 2,并且安装它会出现语法错误。

解决方案是与Thrift的作者联系并帮助他们port to Python 3。完成后,帮助端口cql。更新通常很容易(在某些特殊情况下除外)且很有趣!

关于python - cql是否支持python 3?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/17390367/

10-10 16:34