Skip to content

Latest commit

 

History

History
104 lines (60 loc) · 2.91 KB

installation_guide.md

File metadata and controls

104 lines (60 loc) · 2.91 KB

We need to install the Python interpreter first!

!> For our study group, we will be using Python 3, preferably >= Python 3.6.

You also need to have a text editor to write your code in. This can be (but not limited to) one of the following:

Check existing Python installation

To check if Python is already installed in your system, open your terminal or command prompt.

  • For Windows users, search for cmd
  • For Linux and Mac users, search for terminal

After opening the terminal/command prompt(cmd), type the following command.

python --version

or

python3 --version

This will tell you what version of python is currently installed in your computer.

Python 3.6.0

If python 3 is already installed, skip the next part.

Tutorial

For a detailed installation process, you can use this tutorial.

Windows and OS X

  1. Download the installer for the latest version from the Python Software Foundation.
  2. Run the installer by double-clicking it, and following the succeeding instructions.

!> For Windows users, please don't forget to add Python in your PATH as per below.

Add Python to PATH

!> For OS X users, ensure your Mac settings allow installing packages that are not from the App Store. Go to "System Preferences" > "Security & Privacy," > "General". Set "Allow apps downloaded from:" to "Mac App Store and identified developers."

Linux

Check the Linux distrubution using the terminal

grep ^NAME= /etc/os-release

Type one of the following commands in the termimal depending on your respective Linux distribution.

  • Debian or Ubuntu

    sudo apt install python3
    
  • Fedora

    sudo dnf install python3
    
  • openSUSE

    sudo zypper intall python3
    

You can also try compiling from source if you want the latest version or an alternative installation of Python.

Chromebook

For Chromebook users, you'll need to connect to a cloud IDE provider. You can follow these instructions.

Finally, check if you have successfully installed Python.

Done! You can now start coding in Python!

Put your thinking cap on!

  • What are my challenges upon installing Python? How did I solved them?
  • Do I need Python 2 or 3?
  • What are the differences between Python 2 and 3?