📜  安装在 ubuntu 中的 python 版本 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:19.648000             🧑  作者: Mango

代码示例2
# check all python version install in ubuntu
$ ls /usr/bin/python* # for path and version
$ whereis python # for path and version
$ which python # for path
$ ls -lach /usr/bin/python
$ for p in $(compgen -c python); do printf "%-16s" $p; $p --version; done