Error: Python executable “H:devpython3.10python.EXE“ is v3.10.0, which is not supported by gyp.(代码片段

Posted 安果移不动

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error: Python executable “H:devpython3.10python.EXE“ is v3.10.0, which is not supported by gyp.(代码片段相关的知识,希望对你有一定的参考价值。

 网上说

npm install --python=python2.7

如果不出意外的话应该是出意外了

肯定不行。还是需要加上淘宝的源

npm install --python=python2.7 --registry=https://registry.npm.taobao.org

如果以上能执行成功的话那就是成功了

不能的话

且看我装逼

npm config set python python2.7

配置环境便利 python2.7执行自己本地的2.7

什么 本地根本没有2.7?

访问

Python Releases for Windows | Python.org

 下载并安装 

 

以上是关于Error: Python executable “H:devpython3.10python.EXE“ is v3.10.0, which is not supported by gyp.(代码片段的主要内容,如果未能解决你的问题,请参考以下文章

Error:Can‘t find Python executable “/path/to/executable/python2.7“, you can set the PYTHON env varia

解决Error: Can't find Python executable "python", you can set the PYTHON env variable(示例

Error: Can't find Python executable "python", you can set the PYTHON env variable.解决办法

Install报错Error: Can‘t find Python executable “python“, you can set the PYTHON env var

Install报错Error: Can‘t find Python executable “python“, you can set the PYTHON env var

Install报错Error: Can‘t find Python executable “python“, you can set the PYTHON env var