0
SO,我給自己定的Python路徑在〜/ .profile文件錯誤:無法找到Python的可執行文件 「蟒蛇」
export PYTHON=$PYTHON:/usr/bin/python
我得到。
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.
什麼是可執行文件的路徑?
爲什麼前面有冒號? – user2357112
@ user2357112:聽起來像某人正在將PATH變量與文件路徑的一般用法相混淆。 OP需要通過「將python路徑設置爲/ usr/lib/python」來闡明它們的含義(爲此,爲什麼要將'python'可執行文件安裝到'/ usr/lib',而不是'/ usr/bin'? ) – ShadowRanger
你的意思是'export PATH = $ PATH:/ usr/lib/python'在'.bashrc'文件中? – MYGz