I want to check which version of python is installed and decide what do in batch script. Is it possible ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I want to check which version of python is installed and decide what do in batch script. Is it possible ?

I have a case where in I want to check if python version installed on my machine is less than a number say 3.45 then do some stuff . If not do something else. All this i want to do is through batch script.

23rd Jun 2020, 4:37 PM
rushi Kadam
rushi Kadam - avatar
2 Answers
+ 3
yes rushi Kadam here is a code which is 3.7.6 here https://code.sololearn.com/c20FpE7gTXze/?ref=app
23rd Jun 2020, 4:40 PM
BroFar
BroFar - avatar
0
BroFar i want to check it through a .bat file
23rd Jun 2020, 5:39 PM
rushi Kadam
rushi Kadam - avatar