I want to check my version of python

Sep 26, 2013 at 7:26 PM
I want to check my version of python before I start digging into the language and learning. When I type import sys and sys.version and sys.version_info or any one of those commands individually into the Python Debug Interactive it tells me that

Code can only be executed while stopped in debugger.
Sep 26, 2013 at 7:30 PM
Python Debug Interactive is, indeed, for running code in the context of a program being debugged - which is only possible when you're stopped at some point in that program (e.g. at a breakpoint).

However, PTVS also has regular Interactive windows - one per every registered interpreter - that just give you a normal REPL with its own context. You can find that in Tools -> Python Tools. Alternatively, you can open the Python Environments tool window (also in Tools -> Python Tools, or Ctrl+K followed by backtick), and then click on the "Interactive Window" link for the interpreter for which you need one.
Sep 26, 2013 at 7:33 PM
Of course, by the time you've found any of those commands, you'll see in the name which version you're going to get :)

I suspect the Environments window will answer your question.
Sep 26, 2013 at 7:46 PM
I have version 3.3.2. Thanks.