亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

即使在導入后,模塊 whois 也無法在 Python 3 中工作

即使在導入后,模塊 whois 也無法在 Python 3 中工作

郎朗坤 2021-10-12 10:55:02
請檢查我在安裝和導入 whois 模塊后得到的以下輸出有人可以幫助解決這個問題嗎?Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] on linuxType "help", "copyright", "credits" or "license" for more information.>>> import whois>>> domain = whois.query('www.google.com')Traceback (most recent call last):  File "<stdin>", line 1, in <module>  File "/usr/local/lib/python3.6/dist-packages/whois/__init__.py", line 50, in query    pd = do_parse(do_query(d, force, cache_file, slow_down, ignore_returncode), tld)  File "/usr/local/lib/python3.6/dist-packages/whois/_1_query.py", line 44, in do_query    _do_whois_query(dl, ignore_returncode),  File "/usr/local/lib/python3.6/dist-packages/whois/_1_query.py", line 58, in _do_whois_query    p = subprocess.Popen(['whois', '.'.join(dl)], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__    restore_signals, start_new_session)  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child    raise child_exception_type(errno_num, err_msg, err_filename)FileNotFoundError: [Errno 2] No such file or directory: 'whois': 'whois'`
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 333 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號