我正在尝试使用 pip (Python 3.5.2) 安装 dpkt 包:
pip install dpkt
安装失败,出现此错误:
Collecting dpkt
Using cached dpkt-1.8.8.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\ic21328\AppData\Local\Temp\pip-build-e0wstmu2\dpkt\setup.py
", line 26
print 'To build a Debian Package you must install stdeb (pip install std
eb)'
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\ic21328\
AppData\Local\Temp\pip-build-e0wstmu2\dpkt\
我已经使用 pip 成功安装了 stdeb 包,但仍然出现同样的错误。如何安装 dpkt?