擅长:python、mysql、java
<p>在Windows上,就像在Linux上一样,如果没有安装<code>whois</code>程序,pywhois会给出一个错误。例如,您可以尝试<a href="http://technet.microsoft.com/en-us/sysinternals/bb897435.aspx" rel="noreferrer">this whois</a>。在</p>
<p>当然,原因在<a href="http://code.google.com/p/pywhois/source/browse/trunk/pywhois/__init__.py" rel="noreferrer">pywhois/<strong>init</strong>.py</a>,第11行:</p>
<pre><code>r = subprocess.Popen(['whois', domain], stdout=subprocess.PIPE)
</code></pre>
<p>显然,这一行需要运行一些现有的、已安装的<code>whois</code>命令行程序(它接受域作为命令行参数进行查找),无论它运行在什么操作系统上。在</p>