- bashrc 中不修改path則:
504 $ files python
/bin/python: symbolic link to python2.7.exe
/usr/local/bin/python: symbolic link to python2.7.exe
/f/Python36/python: PE32+ executable (console) x86-64, for MS Windows
505 $ files python2.7
/bin/python2.7: PE32 executable (console) Intel 80386, for MS Windows
/usr/local/bin/python2.7: PE32 executable (console) Intel 80386, for MS Windows
506 $ files bash
/bin/bash: PE32 executable (console) Intel 80386 (stripped to external PDB), for MS Windows
/usr/local/bin/bash: PE32 executable (console) Intel 80386 (stripped to external PDB), for MS Windows
/f/Git/bin/bash: PE32 executable (console) Intel 80386 (stripped to external PDB), for MS Windows
- bash和python不兼容,所以無法運(yùn)行。同樣的包括 ping,mongo,redis-cli等,除非全部加 cmd /c成為 cmd /c python形式即可執(zhí)行。
最后 type -a python 列出所有 python可執(zhí)行文件。逐個嘗試看它與linux默認(rèn)python的差異。