【发布时间】:2018-07-21 07:43:50
【问题描述】:
我正在尝试安装 web3.js 库并遇到以下问题。
- Node.js 8.x
- Windows 7。
我可以在这个文件夹下找到 python 安装。
C:\Users\Mabel.windows-build-tools\python27
C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin \....\node_modules\node-gyp\bin\node-gyp.js" 重建) 其他 (节点 "C:\Program 文件\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" 重建)
gyp 错误!配置错误 吉普错误!堆栈错误:找不到 Python 可执行文件“python\path\to\executable”, 您可以设置 PYTHON 环境变量。 吉普错误!堆栈在 PythonFinder.failNoPython (C:\Program Files\nodejs\node_mo dules\npm\node_modules\node-gyp\lib\configure.js:483:19)
【问题讨论】:
-
你安装了 Python 吗?
-
@hsz 是 python 已安装
-
you 可以找到它,并不意味着 npm 可以。你需要告诉它它在哪里。错误信息本身也提到了这一点:"Error: Can't find Python executable "python\path\to\executable",you can set the PYTHON env variable"
标签: javascript python-2.7 ethereum web3js