【发布时间】:2016-10-25 12:17:33
【问题描述】:
使用以下 Python 代码:
>>> from wifi import Cell, Scheme
>>> Cell.all('wlan0')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/site-packages/wifi/scan.py", line 39, in all
stderr=subprocess.STDOUT)
File"/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 629, in check_output
**kwargs).stdout
File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 696, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 950, in __init__
restore_signals, start_new_session)
File "/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 1540, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: '/sbin/iwlist'
为什么我会收到错误消息FileNotFoundError: [Errno 2] No such file or directory: '/sbin/iwlist'?
【问题讨论】:
标签: python-3.5