Thursday 17 December 2020

How to check whether python installed or not?

 

Open terminal and execute the command ‘python’.

$python

Python 2.7.16 (default, Jun  5 2020, 22:59:21) 
[GCC 4.2.1 Compatible Apple LLVM 11.0.3 (clang-1103.0.29.20) (-macos10.15-objc- on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

 

If you see above kind of output, python is installed in your system.

 

How to check whether python3 installed or not?

Open terminal and execute the command ‘python3’.

 

$python3
Python 3.8.5 (default, Jul 21 2020, 10:48:26) 
[Clang 11.0.3 (clang-1103.0.32.62)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>


If you see above kind of output, then python3 is installed in your system.


Previous                                                    Next                                                    Home

No comments:

Post a Comment