// Wechaty核心包
npm install --save wechaty@latest
gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR! stack at failNoPython (/home/Robot/nodejs1016/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:118:14) gyp ERR! stack at /home/Robot/nodejs1016/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:59:11 gyp ERR! stack at F (/home/Robot/nodejs1016/lib/node_modules/npm/node_modules/which/which.js:43:25) gyp ERR! stack at E (/home/Robot/nodejs1016/lib/node_modules/npm/node_modules/which/which.js:46:29) gyp ERR! stack at /home/Robot/nodejs1016/lib/node_modules/npm/node_modules/which/which.js:57:16 gyp ERR! stack at Object.oncomplete (fs.js:107:15) gyp ERR! System Linux 4.18.0-193.6.3.el8_2.x86_64 gyp ERR! command "node" "/home/Robot/nodejs1016/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/Robot/WeChatRobotIpad/node_modules/wechaty/node_modules/utf-8-validate gyp ERR! node -v v0.10.16 gyp ERR! node-gyp -v v0.10.9
npm install -g node-gyp
ython 2软件包也包含在默认的CentOS 8存储库中。 要安装Python 2,请输入以下命令: $ sudo dnf install python2 通过键入以下命令验证安装: $ python2 --version