【问题标题】:Python3 - wifi library does not run with Cell.all("wlan0")Python3 - wifi 库不与 Cell.all("wlan0") 一起运行
【发布时间】: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


    【解决方案1】:

    您收到此错误是因为您运行的是 Windows。 wifi 库仅适用于文档中描述的 Linux 系统。

    【讨论】:

    • 感谢您的提问,感谢您的回答,我的代码也遇到了同样的问题。让我试试 Linux,我会给你我的反馈!
    最近更新 更多