Python DNS module import error

后端 未结 13 1622
失恋的感觉
失恋的感觉 2020-12-03 16:39

I have been using python dns module.I was trying to use it on a new Linux installation but the module is not getting loaded. I have tried to clean up and install but the ins

13条回答
  •  -上瘾入骨i
    2020-12-03 17:37

    I ran into the same issue with dnspython.

    My solution was to build the source from their official GitHub project.

    So my steps were:

    git clone https://github.com/rthalley/dnspython
    cd dnspython/
    python setup.py install
    

    After doing this, I was able to import the dns module.

    EDIT

    It seems the pip install doesn't work for this module. Install from source as described.

提交回复
热议问题