2016-12-27 311 views
1

嘗試安裝pydns模塊我得到這個錯誤:錯誤安裝pydns

C:\Windows\system32>pip install pydns 
Collecting pydns 
    Using cached pydns-2.3.6.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\Shiva\AppData\Local\Temp\pip-build-294324_x\pydns\setup.py", line 12, in <module> 
    import DNS 
    File "C:\Users\Shiva\AppData\Local\Temp\pip-build-294324_x\pydns\DNS\__init__.py", line 14, in <module> 
    import Type,Opcode,Status,Class 
ImportError: No module named 'Type' 

---------------------------------------- 
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Shiva\AppData\Local\Temp\pip-build-294324_x\pydns\ 

我試圖pip install py3dns以及,但它不能正常工作。

+0

請幫我擺脫這個錯誤。 –

回答

0

Python 3不支持pydns。您需要使用python 2.7才能使用它。

+0

我已經想通了,但感謝您的幫助。 –