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

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

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

22条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-22 04:30

    The even simpler simplest way:

    In Spyder, start a new "IPython Console", then run any of your existing scripts.

    Now the version can be seen in the first output printed in the console window:

    "Python 3.7.3 (default, Apr 24 2019, 15:29:51)..."

提交回复
热议问题