search for ultralytics
This commit is contained in:
parent
4a9a04ee86
commit
0718925d94
@ -44,8 +44,8 @@ export async function preparePython() {
|
||||
// This check can be customized to your specific condition (e.g., check a file or run `pip show yolo`)
|
||||
let yoloExists = false;
|
||||
try {
|
||||
// Run `pip show yolov5` or your yolo package name to check if installed
|
||||
await spawn(pipCmd, ["show", "yolov5"], { cwd: env.APP_DIR });
|
||||
// Run `pip show ultralytics` or your yolo package name to check if installed
|
||||
await spawn(pipCmd, ["show", "ultralytics"], { cwd: env.APP_DIR });
|
||||
yoloExists = true;
|
||||
} catch {
|
||||
yoloExists = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user