pythonpython-3.xpython-2.7pip

Cannot install pyDNS with Python 3. Command "python setup.py egg_info" failed


I run python 3.6 and try to install the pyDNS package from pip. When I run pip install pyDNS or pip3 install pyDNS I get the error:

Command "python setup.py egg_info" failed with error code 1 in C:\Users\USER\App Data\Local\Temp\pip-install-7r09f2ua\pyDNS\

I've been trying to install the setuptools upgrade with the command pip install --upgrade setuptools but it didn't change anything.


Solution

  • pyDNS is Python2-only. Try py3dns or dnspython:

    pip install py3dns
    pip install dnspython