View the installation path and version information of Python under mac

1. View Python version information: python --version

2. Check the Python installation path: which python

3. View the full path of Python: echo $python

4. Check the path of python3: which python3

5. View the version information of Python3: python3 --version

Guess you like

Origin blog.csdn.net/qq_30507287/article/details/105124646