How can I tell which version of Python is installed?

How can I tell which version of Python is installed?
Answer
First, check what versions of Python you have available:
  1. $ pyenv versions * system (set by /home/realpython/.pyenv/version) 2.7.15 3.6.8 3.8-dev. …
  2. $ python -V Python 2.7.12. …
  3. $ which python /home/realpython/.pyenv/shims/python. …
  4. $ pyenv which python /usr/bin/python.
 

Tìm kiếm

Back
Top