How to Install Python 3 on Mac OS X

preview_player
Показать описание
This video explains how to install Python 3 in a Mac OS X, both Mavericks and Yosemite. As the Python website says, "Python 2.x is legacy, Python 3.x is the present and future of the language."
For those who are learning Python on a Mac, it may be slightly frustrating that Apple doesn't provide the latest version, typically used when learning Python these days.
The easiest way is to download the Mac installer,

Install it by following the steps in the GUI, go to terminal and to start python type,

python3

★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

Python 2.x is already installed on macOS. If you start Python via the bare "python" command in Terminal, then by default you will get Python 2.x -- not the Python 3.x that you just installed. You can see this in the video, where it shows the Python version at around 5:27 min as:

Python 2.7.6 (default, Sep 9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-6-00.0.39)] on darwin

To use your Python 3 installation, use "python3" to start Python in Terminal and you will see something like the following:

Python 3.6.0 (v3.6.0:41df79263a11, Dec 22 2016, 17:23:13)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin

bevintx
Автор

Instead of typing "Python" you should type "Python3".

Python - is reserved for Python2, so always use Python3.

Do not try to make python 3 as default - since this might break other programs that run python 2.

Instead of using Terminal, you can use IDLE - which comes with Python installation to run your commands.

RafiAliKhan
Автор

Thank you for this helpful video :) Thank you for giving clear directions. Everything worked well for me!

jonathangeorge
Автор

Thanks man it helped a lot... I'm just getting started with it... I was confused that where to write commands... Now i know.

Random-DX
Автор

Very helpful and easily explained for a complete beginner such as myself - Thanks

kas
Автор

you installed python 3 but on terminal it is showing 2.7 ?

sharikk
Автор

how to install pycharm in macbook pro version 10.7.5 ?

sandak
Автор

Thanks for your sharing. Python 2.7 and 3.7 are both working on my Mac.

tonyyang
Автор

Thank you. I found the video very helpful.

alexandermrkich
Автор

Thank you! It would have been interesting to see the "Customize" Step under "Installation Type".

mudskippy
Автор

From Japan, Thank You. I have installed python!

mapofage
Автор

Am I able to use QGIS 3.4 If I download this software? Thank you :)

helenauscanga
Автор

Do u have any iron python winform creation classes?

shibujoseukken
Автор

I remember this, use to experiment with Python on windows 7 laptop a few years ago. still cool software tool.

siik-ghostface
Автор

I have installed python on my new MacBook Pro. Idle is showing I have version 3.7.1 but the terminal shows 2.7.10 when I type python -V in terminal. Please assist.

GurmeetSingh-fruo
Автор

Good tutorial for beginners (like me). Thanks!

marshalimmanuel
Автор

Thank you so much - clear video. Exactly what I needed.

andreaesthetica
Автор

there is a major flaw while demonstrating through terminal, without noticing that it uses python2.x not python3.x which is installed externally, please correct that with some comments in the video itself ...

technolizard
Автор

Guy: German
Accent: Indian
Comments: English

leo
Автор

Thanks! The best video on guide to install python. Thumbs up!

aimanjamsariaj