2016-12-17 38 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這對於我的具體使用情況下工作正常參與。