【问题标题】:Error: Can't find Python executable ... (System variables has python set) when using npm-install --save错误:使用 npm-install --save 时找不到 Python 可执行文件...(系统变量已设置 python)
【发布时间】:2018-01-09 16:43:34
【问题描述】:

当我尝试为 npm 安装软件包时会发生这种情况

我得到的确切错误是:

gyp ERR! stack Error: Can't find Python executable ""C:\Users\Amazo\AppData\Local\Programs\Python\Python36-32\python.EXE "", you can set the PYTHON env variable.

我确实在我的System variables 中设置了PYTHON 变量,所以我不确定我在这里做错了什么。

【问题讨论】:

    标签: python node.js windows npm npm-install


    【解决方案1】:

    https://www.python.org/安装python 2.x

    在安装过程中,请务必勾选“添加到路径”选项。

    【讨论】:

      猜你喜欢
      • 2016-03-26
      • 2015-06-04
      • 1970-01-01
      • 1970-01-01
      • 2017-07-03
      • 2016-04-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多