Skip to content

Latest commit

 

History

History
128 lines (110 loc) · 6.48 KB

Configure_Python.md

File metadata and controls

128 lines (110 loc) · 6.48 KB
logo

MindLake Tutorial: Configure Python

A step-by-step cookbook for Python Configuration !

🌟 0. Step by step tutorial

This is part of support chapter for MindLake step-by-step tutorial for Python

🌟 1. Configure Python In Your Local Environment

📔 Table of Contents

🎨 1.1 For Mac OS

🎯 1.1.1 Choice 1: Install Python with Official Installer

⚙️ 1.1.1.1 Step1: Download the Official Installer

Here is an example of Python installation with official installer, you can also choose other package management tools like HomeBrew or Conda.

  1. Navigate to python.org, specifically to Downloads > MacOS and download the latest installation file.
  2. Click on the latest stable release of Python link under the latest Python releases for macOS. The latest available version of Python as of this writing is 3.11.3 Python Releases
  1. Now you'll be able to see the version-specific information. Scroll down on this page until you see a table with all available installation files.
  2. Select and download the file that in the description says macOS under the operating system.
⚙️ 1.1.1.2 Step2: Run the Installer

Python installer for Mac OS To proceed with a default installation of Python, click the "Continue" button. Default option is recommended if you're new to Python and want to install it with standard features. Simply wait for the installation to complete and then click the "Close" button.

⚙️ 1.1.1.3 Step3: Verify the Python Installation
  • Find and open "Terminal" or other shell terminal in LauchPad. Terminal APP
  • Enter the following command in terminal:
python --version

An example of the output is:

Python 3.11.3

🎯 1.1.2 Choice 2: Install Python with HomeBrew

If you need to install Python from the command line on macOS, the Homebrew package manager is a reliable option. Follow the steps below to install Python via Homebrew:

⚙️ 1.1.2.1 Step1: Install HomeBrew (If you don't have Homebrew installed)
  1. Open a browser and go to https://brew.sh. Homebrew
  2. Under the "Install Homebrew" title, copy the command
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Homebrew Install 3. Then open a terminal window, paste the copied command, and press the 'Enter' or 'Return' button. Terminal APP 4. Enter your macOS credentials if and when asked. 5. If prompted, install Apple's command line developer tools. 6. If prompted, copy, paste and execute the command to add Homebrew to your shell profile file. Homebrew Post Install

⚙️ 1.1.2.2 Step2: Install Python
  1. Enter the following command in terminal to upgrade Homebrew:
brew update && brew upgrade
  1. Install Python using this command:
brew install python3

Install Python

⚙️ 1.1.2.3 Step3: Verify the Python Installation

Enter the following command in terminal:

python --version

An example of the output is:

Python 3.11.3

🎨 1.2 For Windows

🎯 1.2.1 Step1: Download the Official Installer

Here is an example of Python installation with official installer, you can also choose other package management tools like Anaconda.

  1. Go to the official Python download page for Windows.
  2. Find a stable Python 3 release. This tutorial was tested with Python version 3.11.3.
  3. Click the appropriate link for your system to download the executable file: Windows installer (64-bit) or Windows installer (32-bit).

🎯 1.2.2 Step2: Running the Executable Installer

  1. After the installer is downloaded, double-click the .exe file, for example python-3.11.3-amd64.exe, to run the Python installer.
  2. Select the Add python.exe to PATH checkbox, which enables users to launch Python from the command line. Python installer add path
  3. If you’re just getting started with Python and you want to install it with default features as described in the dialog, then click Install Now.
  4. Simply wait for the installation to complete and then click the Close button. Python installer complete

🎯 1.2.3 Step3: Verify the Python Installation

Press Win(⊞) + r in keyboard and enter cmd to open the command prompt. Windows Command Prompt Enter the following command in the command prompt:

python --version

An example of the output is:

Python 3.11.3