在安装tensorflow时遇到问题



我在安装tensorflow时遇到问题,请帮助我。下面是我得到的错误:

^3.1
npm ERR! code 1
npm ERR! path C:Usersdellnode_modules@tensorflowtfjs-node
npm ERR! command failed
npm ERR! command C:Windowssystem32cmd.exe /d /s /c node scripts/install.js
npm ERR! CPU-windows-3.15.0.zip
npm ERR! https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-2.7.0.zip
npm ERR! * Downloading libtensorflow
npm ERR! node:events:368
npm ERR!       throw er; // Unhandled 'error' event
npm ERR!       ^
npm ERR!
npm ERR! Error: read ECONNRESET
npm ERR!     at TLSWrap.onStreamRead (node:internal/stream_base_commons:220:20)
npm ERR! Emitted 'error' event on ClientRequest instance at:
npm ERR!     at TLSSocket.socketErrorListener (node:_http_client:447:9)
npm ERR!     at TLSSocket.emit (node:events:390:28)
npm ERR!     at emitErrorNT (node:internal/streams/destroy:157:8)
npm ERR!     at emitErrorCloseNT (node:internal/streams/destroy:122:3)
npm ERR!     at processTicksAndRejections (node:internal/process/task_queues:83:21) {
npm ERR!   errno: -4077,
npm ERR!   code: 'ECONNRESET',
npm ERR!   syscall: 'read'
npm ERR! }
npm ERR! A complete log of this run can be found in:
npm ERR!     C:UsersdellAppDataLocalnpm-cache_logs2022-04-16T07_20_26_616Z-debug.log

命令:npm i @tensorflow-models/coco-ssd @tensorflow/tfjs-node

  1. 尝试运行以下命令:

    npm cache clean --force
    
  2. 删除node_modulespackage-lock.json

  3. 然后运行:npm install

相关内容

  • 没有找到相关文章

最新更新