安装vue项目依赖的时候,报Can't find Python executable "python", you can set the PYTHON env variable

系统已经装了python3,并且可以在终端访问。

Can't find Python executable "python", you can set the PYTHON env variable

npm config set python python3

这样就可以了。

如果没有环境,则要安装即可。

 

windows:

npm install --global --production windows-build-tools

 

mac:

brew install python3

 查看安装位置:

which python3

 

posted @   jiduoduo  阅读(1927)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)
点击右上角即可分享
微信分享提示