How do I check what version of Python is running my script?

前端 未结 22 2059
醉话见心
醉话见心 2020-11-22 04:11

How can I check what version of the Python Interpreter is interpreting my script?

22条回答
  •  孤街浪徒
    2020-11-22 04:38

    The simplest way

    Just type python in your terminal and you can see the version as like following

    desktop:~$ python
    Python 2.7.6 (default, Jun 22 2015, 18:00:18) 
    [GCC 4.8.2] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> 
    

提交回复
热议问题