我如何在Windows 10上安装tensorflow-node?

时间:2019-03-29 22:08:33

标签: tensorflow

在Windows 10桌面上安装Score stored | AssertionError: expected response body to equal '"Score saved"' but got '[{"player":{"number":"s1133824","firstName": goes on 时遇到问题。安装它的确切步骤是什么?

1 个答案:

答案 0 :(得分:0)

  1. 确保目录中至少有以下内容的package.json文件:

    { "private": true }

  2. 确保已全局安装windows-build-tools

    npm install -g --production windows-build-tools

    这应该给您:

    > + windows-build-tools@5.1.0

  3. 确保已全局安装node-gyp

    npm install -g node-gyp

  4. 在本地安装tensortflow-node

    npm install tensort-flow --save-dev

  5. (可选)(建议)为tensorflow安装gpu支持

    npm install @tensorflow/tfjs-node-gpu --save-dev

还要查看官方安装说明,网址为:https://github.com/tensorflow/tfjs-node

您也会发现有帮助: