【问题标题】:Error whois module not callable错误 whois 模块不可调用
【发布时间】:2015-10-10 15:40:26
【问题描述】:

我尝试使用此代码:

https://bitbucket.org/richardpenman/pywhois/src/50b5966b55663b3a95e157680dc033b321360eac?at=default

import whois
w = whois.whois('webscraping.com')

但我收到错误消息:

wh = whois.whois('example.com')
TypeError: 'module' object is not callable

有人知道如何解决这个问题吗?

【问题讨论】:

  • 它是一个模块,而不是一个函数。错误消息对此非常清楚。
  • 你是怎么安装的?
  • 我使用 sudo apt-get install python-whois
  • 我刚刚解决了这个问题,我需要使用“pip install python-whois”安装谢谢大家的帮助

标签: python whois


【解决方案1】:

apt-get install python-whois 安装this module。你应该用 pip 安装python-whois

【讨论】:

  • 是的,你是对的。以前我不使用点子。但这现在解决了
  • @herman,如果问题解决了,请接受回复,这样问题就结束了。
猜你喜欢
  • 1970-01-01
  • 2013-09-19
  • 1970-01-01
  • 2021-05-07
  • 2018-01-22
  • 1970-01-01
  • 2021-06-12
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多