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

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

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

22条回答
  •  北海茫月
    2020-11-22 04:34

    From the command line (note the capital 'V'):

    python -V
    

    This is documented in 'man python'.

    From IPython console

    !python -V
    

提交回复
热议问题