I'm using the MySQL Workbench to run MySQL 5.7 and I have Python installed.
Run the following commands and whichever gives an output is the version you have:
- Python 2:
- Python 3:
Note: You can have both installed and used independently by simply adding the shebang to the top of the Python script to indicate which you want to use. Example:
python 2 script: #!/usr/bin/python python 3 script: #!/usr/bin/python3
I am on Babun (Cygwin fork) and when I type
python --version it displays the version.
$ python --version Python 2.7.8
On a sidenote:
if you have different versions of Python installed, you can switch between them using a shell alias (add to your
.bashrc) for example:
Please do use this carefully, as it might break things. Switching between 2.6 and 2.7 should normally work.