Linux CentOS安装zsh插件提示/usr/bin/env: python: No such file or directory。
生活随笔
收集整理的這篇文章主要介紹了
Linux CentOS安装zsh插件提示/usr/bin/env: python: No such file or directory。
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
執行 ./install.py 文件時,提示:
/usr/bin/env: python: No such file or directory查看系統已安裝的 python 版本:
? ~ ls -l /usr/bin | grep python lrwxrwxrwx 1 root root 36 11月 2 18:11 python -> /etc/alternatives/unversioned-python lrwxrwxrwx 1 root root 25 11月 2 18:08 python3 -> /etc/alternatives/python3 lrwxrwxrwx 1 root root 31 11月 21 2019 python3.6 -> /usr/libexec/platform-python3.6 lrwxrwxrwx 1 root root 17 11月 21 2019 python3.6-config -> python3.6m-config lrwxrwxrwx 1 root root 32 11月 21 2019 python3.6m -> /usr/libexec/platform-python3.6m lrwxrwxrwx 1 root root 39 11月 21 2019 python3.6m-config -> /usr/libexec/platform-python3.6m-config lrwxrwxrwx 1 root root 46 11月 21 2019 python3.6m-x86_64-config -> /usr/libexec/platform-python3.6m-x86_64-config lrwxrwxrwx 1 root root 32 11月 2 18:08 python3-config -> /etc/alternatives/python3-config lrwxrwxrwx 1 root root 24 11月 2 18:11 unversioned-python -> /etc/alternatives/python設置系統默認 python 版本為 python3:
alternatives --set python /usr/bin/python3python 環境安裝完畢,可以執行 ./install.py 了。
總結
以上是生活随笔為你收集整理的Linux CentOS安装zsh插件提示/usr/bin/env: python: No such file or directory。的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: WIn10系统怎么更新升级显卡驱动(wi
- 下一篇: Linux命令之 mount -- 文件