File tree Expand file tree Collapse file tree 2 files changed +17
-9
lines changed
Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 1- console . log ( `
2- [VisionixAI] 🧠 Installation complete!
3-
4- 🚀 To enable ML features, run:
5- npx visionix setup-ml
6-
7- 🛠 This will install Python dependencies inside a virtual environment.
8- ` ) ;
1+
2+ const { execSync } = require ( 'child_process' ) ;
3+ const path = require ( 'path' ) ;
4+
5+ console . log ( '[VisionixAI] 🧠 Installing Python dependencies...' ) ;
6+
7+ try {
8+ // Find the path to requirements.txt relative to this script
9+ const reqPath = path . resolve ( __dirname , '../ml-core/requirements.txt' ) ;
10+ execSync ( `pip install -r "${ reqPath } "` , { stdio : 'inherit' } ) ;
11+ console . log ( '\n[VisionixAI] Python dependencies installed!' ) ;
12+ } catch ( err ) {
13+ console . error ( '\n[VisionixAI] Failed to install Python dependencies. Please ensure Python and pip are installed.' ) ;
14+ }
15+
16+ console . log ( `\n[VisionixAI] Installation complete!\n` ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " @visionix/cli" ,
3- "version" : " 1.0.5 " ,
3+ "version" : " 1.0.6 " ,
44 "description" : " Zone-based computer vision CLI for smart automation" ,
55 "main" : " bin/visionix.js" ,
66 "bin" : {
You can’t perform that action at this time.
0 commit comments