我在termux中使用pip安装了validate_email。后来我尝试导入validate_email,但是似乎出现了错误。
from validate_email import validate_email
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/validate_email.py", line 34, in <module>
DNS.DiscoverNameServers()
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/DNS/Base.py", line 78, in DiscoverNameServers
return ParseResolvConf()
File "/data/data/com.termux/files/usr/lib/python2.7/site-packages/DNS/Base.py", line 53, in ParseResolvConf
lines=open(resolv_path).readlines()
IOError: [Errno 2] No such file or directory: '/etc/resolv.conf'