Posted on

Learn Python Episode #2: Mac/Linux Installation

Get The Learn to Code Course Bundle!
https://josephdelgadillo.com/product/learn-to-code-course-bundle/

Enroll in The Complete Python Course on Udemy!
https://www.udemy.com/python-complete/?couponCode=PYTHONWP

The first thing that we need to do to get into programming with Python is installing it. In this video we will discuss the three different methods for installing Python on your system. First, we will discuss MacOS because that is the system I will be using. So, what we’re going to do is open up the terminal and run a Ruby command to download and install Homebrew:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Homebrew is a package manager that enables you to install various programs without having to search for a source on the internet. If you have used Linux, using a package manage should be very familiar to you. You can find more information on Homebrew at https://brew.sh/. Next, we will run the following command in terminal:

brew install python3

MacOS does ship with a version of Python 2 pre-installed, but we will be using Python 3 in this tutorial series. To verify that Python 3 was installed, run the follow command:

python3 --version

If you are using Ubuntu, or some other Debian based Linux distribution, you are going to open up a terminal window and run the following command:

sudo apt-get install python3

Similar to Mac, you can type python3 –version to verify that it was installed correctly. Fedora now comes with Python 3 as a system dependency, and if you are using RHEL/CentOS you will type the following command in terminal to install Python 3.6.1:

sudo yum install python36u

If nothing seems to happen or if you receive an error message, check to see if Python 3 is already installed on your system. Lastly, to install Python 3 on Windows you will need to go to https://www.python.org/downloads/. You will download either the 32 or 64 bit version depending on your operating system, and proceed through the installation. I will cover how to install Python 3 on Windows 10 in the next video.

Webhttps://josephdelgadillo.com/
Subscribehttps://goo.gl/tkaGgy
Follow for Updateshttps://steemit.com/@jo3potato