0

使用了以下 cmd(在 tensorflow 文档中给出): npm install -g @tensorflow/tfjs-node

试图找出问题所在,但无法找到解决方案。请帮助解决这个问题。(提前致谢)

下图显示了我遇到的错误。

安装错误

4

1 回答 1

0

您需要安装 node-gyp ( https://github.com/nodejs/node-gyp#installation ) 或确保它可以访问正确版本的 python。

如果你已经安装了 node-gyp 和 python 2.7,运行npm config set python python2.7配置 npm 来使用它。

于 2018-09-05T08:59:33.217 回答