使用了以下 cmd(在 tensorflow 文档中给出): npm install -g @tensorflow/tfjs-node
试图找出问题所在,但无法找到解决方案。请帮助解决这个问题。(提前致谢)
下图显示了我遇到的错误。
使用了以下 cmd(在 tensorflow 文档中给出): npm install -g @tensorflow/tfjs-node
试图找出问题所在,但无法找到解决方案。请帮助解决这个问题。(提前致谢)
下图显示了我遇到的错误。
您需要安装 node-gyp ( https://github.com/nodejs/node-gyp#installation ) 或确保它可以访问正确版本的 python。
如果你已经安装了 node-gyp 和 python 2.7,运行npm config set python python2.7
配置 npm 来使用它。