Please note I'm not asking "how to check which version of Python did I install".
I've installed several versions of Pythons on my Windows computer, for example Python 2.7-64, Python 2.7-32, and Python 3.7-32.
Python 3 includes "py" and "pyw" which helps me to easily start different Pythons, for example:
What I'm wondering is, how to check how many different versions of Python did I install on my Windows PC and what versions are they?
PyCharm is able to find it but, for one thing, I don't know if it is a complete list, and for another, I wonder if there is any tool provided by Python or the operating system can do it.
Please note I'm not asking "how to check which version of Python did I install".
I've installed several versions of Pythons on my Windows computer, for example Python 2.7-64, Python 2.7-32, and Python 3.7-32.
Python 3 includes "py" and "pyw" which helps me to easily start different Pythons, for example:
What I'm wondering is, how to check how many different versions of Python did I install on my Windows PC and what versions are they?
PyCharm is able to find it but, for one thing, I don't know if it is a complete list, and for another, I wonder if there is any tool provided by Python or the operating system can do it.
if you are using windows type in CMD
where python
and get something like this
C:\Python310\python.exe
C:\Users\facundo\AppData\Local\Microsoft\WindowsApps\python.exe
C:\Users\facundo\AppData\Local\Programs\Python\Python38\python.exe
Please note I'm not asking "how to check which version of Python did I install".
I've installed several versions of Pythons on my Windows computer, for example Python 2.7-64, Python 2.7-32, and Python 3.7-32.
Python 3 includes "py" and "pyw" which helps me to easily start different Pythons, for example:
What I'm wondering is, how to check how many different versions of Python did I install on my Windows PC and what versions are they?
PyCharm is able to find it but, for one thing, I don't know if it is a complete list, and for another, I wonder if there is any tool provided by Python or the operating system can do it.
As I got from running python -2,
Requested Python version (2) not installed, use -0 for available pythons PS C:\\Users\\ASUS> py -0 Installed Pythons found by C:\\Windows\\py.exe Launcher for Windows -3.9-64 *
As in, use command py -0
In cmd run:
py --list
My result (all versions of python intalled):
-V:3.11 * Python 3.11 (64-bit)
-V:3.9
-V:3.8 Python 3.8 (64-bit)
-V:3.6 Python 3.6 (64-bit)
-V:3.5
-V:ContinuumAnalytics/Anaconda39-64 Anaconda py39_4.12.0
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.