【发布时间】:2016-08-09 17:31:17
【问题描述】:
我正在尝试为 python3 (https://wifi.readthedocs.io/en/latest/index.html) 使用 wifi 库,但是当我使用 Cell.all("wlan0") 时出现此错误:
Microsoft Windows [Versione 10.0.10586]
(c) 2015 Microsoft Corporation. Tutti i diritti sono riservati.
C:\WINDOWS\system32>python
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from wifi import Cell, scheme
>>> list(Cell.all("wlan0"))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\users\-----\appdata\local\programs\python\python35\lib\site-packages\wifi\scan.py", line 39, in all
stderr=subprocess.STDOUT)
File "c:\users\-----\appdata\local\programs\python\python35\lib\subprocess.py", line 629, in check_output
**kwargs).stdout
File "c:\users\-----o\appdata\local\programs\python\python35\lib\subprocess.py", line 696, in run
with Popen(*popenargs, **kwargs) as process:
File "c:\users\-----\appdata\local\programs\python\python35\lib\subprocess.py", line 950, in __init__
restore_signals, start_new_session)
File "c:\users\-----\appdata\local\programs\python\python35\lib\subprocess.py", line 1220, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] Impossibile trovare il file specificato
>>>
附言对不起我的英语不好(我是意大利人)
【问题讨论】:
标签: python python-3.x wifi