Когда я пытаюсь использовать некоторые функциональные возможности Тензорного потока, он позже выдает и выдает ошибку inshort как «tfjs_binding.node», не найденный в папке @tensorflow insatlled.
Я установил Python 2.7, так как он должен был быть установлен кактребование перед передачей в тензор .. и проверил его действительность с помощью "python -v", а также
, поэтому ниже, когда я пытаюсь установить @ tenorflow / tfjs-node .., помогите разобраться с вещами, плз .. .
D:\FYP stuff\servermaking\f_I_upoadt2>npm install @tensorflow/tfjs-node
> @tensorflow/tfjs-node@1.2.11 install D:\FYP stuff\servermaking\f_I_upoadt2\node_modules\@tensorflow\tfjs-node
> node scripts/install.js
CPU-windows-1.2.11.zip
* Downloading libtensorflow
[==============================] 310671/bps 100% 0.0s
[==============================] 355964/bps 100% 0.0s
* Building TensorFlow Node.js bindings
node-pre-gyp install failed with error: Error: Command failed: node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://storage.googleapis.com/tf-builds/pre-built-binary/napi-v3/1.2.11/CPU-windows-1.2.11.zip
node-pre-gyp WARN Pre-built binaries not found for @tensorflow/tfjs-node@1.2.11 and node@10.15.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=D:\\FYP stuff\\servermaking\\f_I_upoadt2\\node_modules\\@tensorflow\\tfjs-node\\lib\\napi-v3\\tfjs_binding.node" "--module_name=tfjs_binding" "--module_path=D:\\FYP stuff\\servermaking\\f_I_upoadt2\\node_modules\\@tensorflow\\tfjs-node\\lib\\napi-v3" "--napi_version=3" "--node_abi_napi=napi" "--napi_build_version=3" "--node_napi_label=napi-v3"
gyp ERR! cwd D:\FYP stuff\servermaking\f_I_upoadt2\node_modules\@tensorflow\tfjs-node
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=D:\FYP stuff\servermaking\f_I_upoadt2\node_modules\@tensorflow\tfjs-node\lib\napi-v3\tfjs_binding.node --module_name=tfjs_binding --module_path=D:\FYP stuff\servermaking\f_I_upoadt2\node_modules\@tensorflow\tfjs-node\lib\napi-v3 --napi_version=3 --node_abi_napi=napi --napi_build_version=3 --node_napi_label=napi-v3' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (D:\FYP stuff\servermaking\f_I_upoadt2\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:962:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
node-pre-gyp ERR! System Windows_NT 10.0.17763
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\FYP stuff\\servermaking\\f_I_upoadt2\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd D:\FYP stuff\servermaking\f_I_upoadt2\node_modules\@tensorflow\tfjs-node
node-pre-gyp ERR! node -v v10.15.0
node-pre-gyp ERR! node-pre-gyp -v v0.13.0
node-pre-gyp ERR! not ok
npm WARN f_i_upoadt2@1.0.0 No description
npm WARN f_i_upoadt2@1.0.0 No repository field.
+ @tensorflow/tfjs-node@1.2.11
updated 1 package and audited 598 packages in 106.757s
found 0 vulnerabilities
ниже приведена ошибка, выданная после того, как я попытаюсь запустить сервер
throw err;
^
Error: Cannot find module 'D:\FYP stuff\servermaking\f_I_upoadt2\node_modules\@tensorflow\tfjs-node\lib\napi-v3\tfjs_binding.node'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (D:\FYP stuff\servermaking\f_I_upoadt2\node_modules\@tensorflow\tfjs-node\dist\index.js:44:16)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
[nodemon] app crashed - waiting for file changes before starting...
Я буду рад любой помощи или руководству