Ich portiere alle meine Python-Programm in Eclipse und Pydev auf einen neuen Computer. Dann schrieb ich die folgende Anweisung in meinem Programm:Python Subprozess Popen abgestürzt, aber ich habe es nicht direkt
outText = check_output("adb devices").decode('utf-8')
In dem alten Computer, das war gut. Aber in dem neuen Computer, erstellt es einen Fehler und Python versenkt Folgendes.
File "C:\Users\FARN\Documents\LINUX\realtime\PRGM\TaaDPlayground\src\moduleAndroid\testingModuleAndroid.py", line 82, in getDevice
outText = check_output("adb devices").decode('utf-8')
File "C:\Program Files\Python36\lib\subprocess.py", line 336, in check_output
**kwargs).stdout
File "C:\Program Files\Python36\lib\subprocess.py", line 403, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Program Files\Python36\lib\subprocess.py", line 707, in __init__
restore_signals, start_new_session)
File "C:\Program Files\Python36\lib\subprocess.py", line 992, in _execute_child
startupinfo)
File "C:\Users\FARN\.p2\pool\plugins\org.python.pydev_5.9.2.201708151115\pysrc\_pydev_bundle\pydev_monkey.py", line 420, in new_CreateProcess
return getattr(_subprocess, original_name)(app_name, patch_arg_str_win(cmd_line), *args)
FileNotFoundError: [WinError 2]
Im alten Computer habe ich Python 3.4.3 verwendet.
In dem neuen habe ich beide Python 3.4.3 und 3.6 versucht. Der Fehler besteht immer noch.
Was ist das Problem?
einen Blick auf Nehmen Sie [fragen] und [MCVE] – pvg