Can't find Python executable “/path/to/executable/python2.7”, you can set the PYTHON env variable

匆匆过客 提交于 2019-12-04 02:59:33

Scott Frees' solution didn't work for me but running

npm config set python $(which python)

did.

Scott Frees

If you installed Python using a package manager, it should already be on your path- but if not: add it like this:

export PATH="$PATH:/usr/local/bin/python (or wherever you installed python to)

Node-gyp requires 2.x and cannot use Python3 (do you have the right version installed?).

See Running Python on Windows for Node.js dependencies for Windows to make sure you have your environment variable set.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!