Mosso Python 模块
有人成功安装了 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
Has anybody had success installing the Mosso (cloudfiles) python module? I'm trying to install it and getting the following error.
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来您正在运行 2.4 之前的 Python 版本 - 它所抱怨的语法(@符号,称为“装饰器”)是在 Python 2.4 中引入的。
It looks like you're running a version of Python prior to 2.4 - the syntax it's complaining about (the @ symbol, known as a "decorator") was introduced in Python 2.4.