• 周五. 4月 19th, 2024

5G编程聚合网

5G时代下一个聚合的编程学习网

热门标签

下拉代码后安装依赖,最后出现:Error: Can't find Python executable "python", you can set the PYTHON env variable.

admin

11月 28, 2021

下拉代码后安装依赖,最后出现:Error: Can’t find Python executable “python”, you can set the PYTHON env variable.

报错:

 此时安装vue环境不成功,总是出来vue未安装不能使用,在全局状态下也安装不成功,不知道咋回事,所有百度出来下面的,一步一步试吧。

根据搜索出的:https://www.cnblogs.com/fxwoniu/p/13846586.html

解决办法:

输入:npm install --global --production windows-build-tools

,但是又报错:Please restart this script from an administrative PowerShell!

The build tools cannot be installed without administrative rights.

To fix, right-click on PowerShell and run “as Administrator”.

解决方法:https://blog.csdn.net/weixin_46261309/article/details/105456830

以管理员身份运行cmd,再次输入上述命令

这样就完成了!

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注