安裝方法:pip3 install pywifi 安裝位置:/usr/local/lib/python3.5/dist-packages/pywifi注意事項:用root賬戶執行程序,否則會提示PermissionError: [Errno 13] Permission denied: '/var/run/wpa_supplicant'
包內文件:
pywifi內文件
testandconnectwifi.py
錯誤信息1 profile=pywifi.profile() # 配置文件
TypeError: 'module' object is not callable
解決辦法:from pywifi import profile
參考:https://blog.csdn.net/flhsxyz/article/details/79207180