【发布时间】:2018-06-04 09:08:33
【问题描述】:
root@kali:~# ./collecting_info_using_facets.py apache
Traceback (most recent call last):
File "./collecting_info_using_facets.py", line 3, in <module>
import shodan
ImportError: No module named shodan
我将路径包含为#!usr/bin/env python,但我也无法从命令行导入 shodan,但我可以从 python3 IDLE 运行相同的程序。
【问题讨论】:
-
你安装了shodan模块吗?
-
你确定你运行的是python3而不是2吗?看来您可能已经为 python3 安装了 shodan 库(因此 IDLE 可以运行)但不是为 2(我怀疑您在命令行上运行)。
标签: python python-3.x command-line-arguments shodan