Thursday, 3 December 2015

Install python on MAC OS

Step 1:Download python software from following location. I downloaded pkg file to install on mac os.

Step 2: Click the pkg file.
Press Continue.
Press Continue.
Accept license agreement and press Continue.
You can change the installation location use the button ‘Change Install Location’, and press the button Install.
Once installation is successful, you will get following screen.

Once installation is successful, open terminal and type python3 (Since I installed python 3.5).
$ python3
Python 3.5.0 (v3.5.0:374f501f4567, Sep 12 2015, 11:00:19) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()

Use ‘quit()’ to exit from python prompt.

Location of python3
$ which python3
/Library/Frameworks/Python.framework/Versions/3.5/bin/python3

$ which python3.5
/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5
On windows machines python usually placed at ‘C:\Python35’.



Previous                                                 Next                                                 Home

No comments:

Post a Comment