[Edge Impulse] CLI安装npm install -g edge-impulse-cli --force报错 解决办法

试图使用edge impulse的data forwardard

在安装node.js时,在以下窗口勾选了


 **Tools for Native Modules** Optionally install the tools necessary to compile native modules.
Some npm modules need to compiled from C/C++ when installing. If you want to be able to install such modules, some tools(Python 2 and Visual Studio Build Tools) need to be installed.
Automatically install the necessary tools. Note that this will also install Chocolatey. The script will pop-up in a new window after the installation copletes.
Alternatively, follow the instructions at [https://github.com/nodejs/node-gyp#on-windows](https://github.com/nodejs/node-gyp#on-windows) to install the dependencies yourself.

我安装的时间是2023年10月,然后勾选这个选项后npm自动安装了python3.12
在根据官网的教程:

[Data forwarder - Edge Impulse Documentation]
[Installation - Edge Impulse Documentation]
安装CLI时,在命令行运行以下代码报错

npm install -g edge-impulse-cli --force
ModuleNotFoundError: No module named 'distutils'

还有很多行报错 这里只放这一句


尝试重装、更换node.js版本之后仍然不能解决
上网搜索这个报错或者相关报错一般都是在linux安装python报的问题,很头疼
后来同学在GitHub上查到了问题原因:

python3.12没有distutils这个模块
更换更低版本的python就没问题了,我本来就有3.11.4,卸载3.12就可以了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

DOKUNYU

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值