YOLOv8 code debugging "FileNotFoundError: [WinError 2] The system cannot find the specified file" error

YOLOv8 code debugging "FileNotFoundError: [WinError 2] The system cannot find the specified file" error

When the YOLOv8 code runs for the first time, a "FileNotFoundError: [WinError 2] The system cannot find the specified file" error occurs.
Find the subprocess.py file in the virtual environment: envs\yolov8\Lib\subprocess.py. Change the shell= False
insert image description here
in the parentheses after class Popen(object): in def __init__ to shell= True
. ]

Guess you like

Origin blog.csdn.net/qq_26938321/article/details/128690371