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`)
|
// This check can be customized to your specific condition (e.g., check a file or run `pip show yolo`)
|
||||||
let yoloExists = false;
|
let yoloExists = false;
|
||||||
try {
|
try {
|
||||||
// Run `pip show yolov5` or your yolo package name to check if installed
|
// Run `pip show ultralytics` or your yolo package name to check if installed
|
||||||
await spawn(pipCmd, ["show", "yolov5"], { cwd: env.APP_DIR });
|
await spawn(pipCmd, ["show", "ultralytics"], { cwd: env.APP_DIR });
|
||||||
yoloExists = true;
|
yoloExists = true;
|
||||||
} catch {
|
} catch {
|
||||||
yoloExists = false;
|
yoloExists = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user