UNPKG

sentiment-analysis-textblob

Version:
9 lines (8 loc) 337 B
const { execSync } = require('child_process'); try { execSync('python --version', { stdio: 'ignore' }); console.log('Python found. Installing TextBlob...'); } catch (err) { console.error('Python not found. Please install Python from https://www.python.org/downloads/ and ensure it is added to PATH.'); process.exit(1); }