安装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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM