有人成功安装了Mosso(cloudfiles)python模块吗?我正在尝试安装它并收到以下错误。
python-cloudfiles-1.3.1]# python setup.py install
running install
running build
running build_py
running install_lib
byte-compiling /usr/lib/python2.3/site-packages/cloudfiles/container.py to container.pyc
File "/usr/lib/python2.3/site-packages/cloudfiles/container.py", line 74
@requires_name(InvalidContainerName)
^
SyntaxError: invalid syntax
byte-compiling /usr/lib/python2.3/site-packages/cloudfiles/storage_object.py to storage_object.pyc
File "/usr/lib/python2.3/site-packages/cloudfiles/storage_object.py", line 85
@requires_name(InvalidObjectName)
^
SyntaxError: invalid syntax
最佳答案
您似乎正在运行2.4之前的Python版本-它抱怨的语法(@符号,称为“装饰器”)是在Python 2.4中引入的。