@aiyiran/myclaw 1.0.252 → 1.0.253
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -59,11 +59,13 @@ function patchPythonDeps() {
|
|
|
59
59
|
|
|
60
60
|
for (const pkg of missing) {
|
|
61
61
|
try {
|
|
62
|
-
execSync(`pip3 install -q ${pkg}`, { stdio: 'pipe' });
|
|
62
|
+
execSync(`pip3 install -q --break-system-packages ${pkg}`, { stdio: 'pipe' });
|
|
63
63
|
console.log('[myclaw-python-deps] ✅ 已安装: ' + pkg);
|
|
64
64
|
installed.push(pkg);
|
|
65
65
|
} catch (err) {
|
|
66
|
-
|
|
66
|
+
const detail = (err.stderr && err.stderr.toString().trim()) || err.message;
|
|
67
|
+
console.log('[myclaw-python-deps] ❌ 安装失败: ' + pkg);
|
|
68
|
+
console.log(' ' + detail);
|
|
67
69
|
failed.push(pkg);
|
|
68
70
|
}
|
|
69
71
|
}
|