gpt4 book ai didi

python-2.7 - 属性错误 : 'module' object has no attribute 'whois'

转载 作者:行者123 更新时间:2023-12-05 08:27:28 26 4
gpt4 key购买 nike

我尝试执行这段代码:

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

我得到了上面的错误。为什么?

最佳答案

错误的库,解决方案是删除旧的并安装新的:

pip uninstall whois 
pip install python-whois

关于python-2.7 - 属性错误 : 'module' object has no attribute 'whois' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41165091/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com