python - not able to find tfjs-node bindings
问题描述
I am trying tfjs-node in my machine for one of my projects and i keep getting the below issue.
Error: The Node.js native addon module (tfjs_binding.node) can not be found at path: /Users/pavanmantha/Pavans/ML-Practice/nodejs+tfjs/nodejs_tfjs/node_modules/@tensorflow/tfjs-node/lib/napi-v6/tfjs_binding.node.
My environment is as below:
OS: MAC OSX Catalina 10.15.6
Node: 14.5.0
Python: 3.8.3
Please suggest me some way, as i tried reinstalling all dependencies and changed my node versions. nothing helped.
Thanks.
解决方案
From this issue
Try running this command
npm rebuild @tensorflow/tfjs-node --build-from-source
Does this solve your problem?
推荐阅读
- azure-data-explorer - 带有子查询的 Kusto 循环数组
- c++ - 字符串内容与预期内容不同
- mysql - MySQL将特定值插入列
- python - 类型错误:back() 缺少 1 个必需的位置参数:'image_number'
- java - Java - POI:从 doc 文件中提取文本时出现问题
- r - 与矩阵相交时避免 NA
- java - Partition模式下第一次执行select查询耗时10多分钟。(用两个节点点燃集群)
- android - 如何使用 Gradle 任务从命令行获取参数?
- mysql - 不能在旧版本 MySQL Query Browser 中使用 regexp_substr
- selenium - 尝试使用联合运算符(|)定位元素的子节点时出现 InvalidSelectorException