I want to check MX-Record from Python. So I installed the dnspython
package, but when I try to import following library:
import dns.resolver
It shows the following error:
ModuleNotFoundError: No module named 'dns'.
I use PyCharm and Python 3.
Best Answer
You should install https://github.com/rthalley/dnspython first
pip install dnspython
What solved it for me was to add dnspython
into the requirements file.
So in the requirements.pinned.txt
:
...dnspython==2.0.0...
And in the requirements.txt
:
dnspython...