在Windows上安装wakadump时,出现以下错误
$ pip install wakadump
Collecting wakadump
Using cached wakadump-2.0.1.tar.gz
Collecting click==4.0 (from wakadump)
Using cached click-4.0-py2.py3-none-any.whl
Collecting keen==0.3.3 (from wakadump)
Using cached keen-0.3.3.tar.gz
Collecting pytz==2015.4 (from wakadump)
Using cached pytz-2015.4-py2.py3-none-any.whl
Collecting simplejson==3.6.5 (from wakadump)
Using cached simplejson-3.6.5.tar.gz
Collecting unicodecsv==0.9.4 (from wakadump)
Using cached unicodecsv-0.9.4.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "C:\Users\!USERNAME!\AppData\Local\Temp\pip-build-zqck6wkt\unicodecsv\set up.py", line 5, in <module>
version = __import__('unicodecsv').__version__
File "C:\Users\!USERNAME!\AppData\Local\Temp\pip-build-zqck6wkt\unicodecsv\uni codecsv\__init__.py", line 49
except TypeError, e:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\sakhar\A ppData\Local\Temp\pip-build-zqck6wkt\unicodecsv
我重新检查了,我安装了最新版本的设置工具,并且PIP升级到最新版本。
我尝试更新所有内容,并重新启动系统以确保事情得到反映,但没有运气。
答案 0 :(得分:1)
wakadump
已创建不兼容(旧)的Python版本,不支持您安装的现代Python版本。
Python 3.x使用语法except TypeError as e
(新)而不是except TypeError, e
(旧)。
wakadump
以支持新的Python版本。