0
我試圖安裝Chris Atlee's python Poster library,所以我可以在腳本中使用HTTP POST查詢上傳文件。安裝海報(Python模塊)時出錯
在python 2.3上,當我輸入# python setup.py install
時,出現以下錯誤。安裝繼續,但我不能>>> import poster
稍後。
byte-compiling build/bdist.linux-x86_64/egg/poster/encode.py to encode.pyc
File "build/bdist.linux-x86_64/egg/poster/encode.py", line 112
@classmethod
^
SyntaxError: invalid syntax
byte-compiling build/bdist.linux-x86_64/egg/poster/streaminghttp.py to streaminghttp.pyc
File "build/bdist.linux-x86_64/egg/poster/streaminghttp.py", line 114
newheaders = dict((k,v) for k,v in req.headers.items()
^
SyntaxError: invalid syntax
byte-compiling build/bdist.linux-x86_64/egg/poster/__init__.py to __init__.pyc
任何指針?