Explore Courses Blog Tutorials Interview Questions
0 votes
in Python by (16.4k points)

I have been utilizing the python DNS module. I was attempting to utilize it on another Linux installation yet the module isn't getting loaded. I have attempted to clean up and introduce however the establishment doesn't appear to be working. 

    $ python --version

    Python 2.7.3

    $ sudo pip install dnspython

    Downloading/unpacking dnspython

      Downloading (220Kb): 220Kb downloaded

      Running egg_info for package dnspython

    Installing collected packages: dnspython

      Running install for dnspython

    Successfully installed dnspython

    Cleaning up...

    $ python

    Python 2.7.3 (default, Sep 26 2013, 20:03:06) 

    [GCC 4.6.3] on linux2

    Type "help", "copyright", "credits" or "license" for more information.

    >>> import dns

    Traceback (most recent call last):

      File "", line 1, in 

    ImportError: No module named dns

Refreshed Output of python form and pip version  command

    $ which python


    $ python --version

    Python 2.7.3

    $ pip --version

    pip 1.0 from /usr/lib/python2.7/dist-packages (python 2.7)

Thanks in advance.

1 Answer

0 votes
by (26.4k points)

I executed them into a similar issue with DNS python. 

So my means were: 

git clone

cd dnspython/

python install

After that, I can able to import dns module

It appears to be the pip install doesn't work for this module. Introduce from source as portrayed.

Want to learn python to get expertise in the concepts of python? Join python certification course and get certified

Related questions

0 votes
4 answers
0 votes
1 answer
0 votes
1 answer
0 votes
2 answers
0 votes
1 answer

Browse Categories