2016-12-17 39 views
1

我试图用pip安装dpkt软件包(Python 3.5.2):错误:“要建立一个Debian软件包,你必须安装stdb(pip install std eb)”当安装dpkt(Python 3.5.2)

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?

回答

-1

我得到同样的错误。如果你更仔细,你可以清楚地看到,这是生产的dpkt包语法错误,而不是印刷错误,要求你安装stdeb。

我的解决方案并不理想,并使用Python 2.7这对于我的具体使用情况下工作正常参与。