【发布时间】:2018-08-04 14:48:18
【问题描述】:
以下是我尝试使用 JHipster 生成新项目时遇到的错误:
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python C:\Program Files\Python36\python.EXE
gyp verb check python version `C:\Program Files\Python36\python.EXE -c "import platform; print(platform.python_version());"` returned: "3.6.4\r\n"
gyp verb could not find "C:\Program Files\Python36\python.EXE". checking python launcher
gyp verb could not find "C:\Program Files\Python36\python.EXE". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "C:\Program Files\Python36\python.EXE", you can set the PYTHON env variable.
剩下的是堆栈跟踪。奇怪的是我确实安装了 python 并且还设置了环境变量。我的 python 版本是“Python 3.6.4”。我应该在 Python 2 中运行它吗?是这样吗?
【问题讨论】: