hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 系統(tǒng)找不到指定的文件 類似問題解決辦法
通過代碼尋找,問題代碼出現(xiàn)在這句文章來源:http://www.zghlxwxcb.cn/news/detail-676232.html
device_name = subprocess.check_output(
[_ADB, "-s", device_id, "shell", "getprop", "ro.product.model"]
)
其中_ADB變量值為adb;這句話的意思是在cmd中執(zhí)行adb -s shell {device_id} getprop ro.product.model
并返回執(zhí)行結(jié)果,這里返回的結(jié)果為系統(tǒng)找不到指定的文件
,即adb該命令未加入環(huán)境變量,那我們只需將adb加入環(huán)境變量即可。(注意:pycharm需要重啟才能刷新環(huán)境變量)文章來源地址http://www.zghlxwxcb.cn/news/detail-676232.html
到了這里,關(guān)于hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2]系統(tǒng)找不到指定的文件的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!