简体   繁体   English

错误:找不到Python可执行文件“ python”

[英]Error: Can't find Python executable “python”

SO, I've set python path as in ~/.profile 所以,我已经将python路径设置为〜/ .profile

export PYTHON=$PYTHON:/usr/bin/python 

I'm getting. 我越来越。

stack Error: Can't find Python executable ":/usr/lib/python:/usr/lib/python3.5:/usr/lib/python3.5:/usr/bin/python3.5:/usr/bin/python", you can set the PYTHON env variable.

What will be the path to the executable python ? 可执行python的路径是什么?

Your tool seems to want the directory that might contain the executable named python , not the full path to the executable. 您的工具似乎想要的目录可能包含名为python的可执行文件,而不是可执行文件的完整路径。 Try changing it to: export PYTHON=$PYTHON:/usr/bin 尝试将其更改为: export PYTHON=$PYTHON:/usr/bin

Looks like your tool is likely node-gyp or some other npm related thing, in which case you might want to look at this question or this one if the problem persists. 看起来你的工具很可能node-gyp或其他一些npm相关的事情,在这种情况下,你可能想看看这个问题,或者这个问题是否存在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 找不到Python可执行文件 - Can't find Python executable 找不到 Python 可执行文件“python” - Can't find Python executable "python" 码头运行 <image> 错误:找不到要运行的python可执行文件 - docker run <image> Error: Can't find python executable to run 吉普错误! 堆栈错误:找不到 Python 可执行文件 - gyp ERR! stack Error: Can't find Python executable 在 MacOS Big Sur 中出现 NPM 错误“找不到 Python 可执行文件” - NPM Error "Can't find Python executable" in MacOS Big Sur Docker 找不到 Python venv 可执行文件 - Docker can't find Python venv executable 当我已经在Linux上设置PYTHON变量时,如何解决“找不到Python可执行文件”错误 - How to fix “Can't find Python executable” error while already I set the PYTHON variable on Linux 为什么得到,gyp ERR! 堆栈错误:找不到 Python 可执行文件“python”? - Why am getting, gyp ERR! stack Error: Can't find Python executable "python"? “找不到 Python 可执行文件……” - npm install 挂起 - “Can't find Python executable…” - npm install hangs npm - “找不到 Python 可执行文件“python”,您可以设置 PYTHON env 变量。” - npm - "Can't find Python executable "python", you can set the PYTHON env variable."
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM