简体   繁体   English

pip install WakaDump: SyntaxError: 除了 TypeError, e 语法无效

[英]pip install WakaDump: SyntaxError: invalid syntax at except TypeError, e

While install wakadump over Windows, I get following error在 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

I rechecked and I have setup tools installed to latest version and also PIP is upgraded to latest version.我重新检查并安装了最新版本的安装工具,并且 PIP 也升级到了最新版本。

I tried updating everything and also restarted the system to make sure things get reflected but no luck.我尝试更新所有内容并重新启动系统以确保事情得到反映但没有运气。

wakadump has been created incompatible (old) Python version and does not support the modern Python version you have installed. wakadump已创建不兼容(旧)Python 版本,并且不支持您安装的现代 Python 版本。

Python 3.x uses syntax except TypeError as e (new) not except TypeError, e (old). Python 3.x 使用except TypeError as e (新) except TypeError, e语法,而不是except TypeError, e (旧)。

wakadump must be upgraded to support new Python versions. wakadump必须升级以支持新的 Python 版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM