CodingNic

Python Foundations

Installing Python and Tools Setup

Python Foundations 18 min read

Installing Python and Tools Setup

Installing Python and Tools Setup

Before writing real programs, you need a proper Python environment. In this lesson, you will install Python, confirm it works, and choose tools used by professional developers.

What You Need

  • A computer (Windows, macOS, or Linux)
  • Internet connection
  • Basic file navigation skills

Step 1: Install Python

Visit the official Python website and download the latest stable version for your operating system.

During installation on Windows, make sure to enable:

  • Add Python to PATH

This allows you to run Python from the terminal.

Step 2: Verify Installation

Open your terminal or command prompt and run:

bash
python --version

If needed, try:

bash
python3 --version

Expected result:

text
Python 3.x.x

Step 3: Choose an Editor

Popular options:

  • VS Code — lightweight and popular
  • PyCharm — powerful Python IDE
  • Jupyter Notebook — excellent for experiments and data work

Install these extensions:

  • Python
  • Pylance
  • Jupyter (optional)

Step 4: Create Your First Project Folder

Example:

text
python-projects/
  hello-python/

Inside it, create a file named:

text
main.py

Step 5: Run Code in Your Editor

Add this code:

python
print("Python is ready!")

Run the file.

Common Problems

Python Not Found

Use python3 instead of python, or reinstall with PATH enabled.

Wrong Version

Ensure Python 3 is installed.

File Won’t Run

Check the file extension is .py.

Mini Challenge

  1. Install Python
  2. Confirm version
  3. Create a project folder
  4. Run a script that prints your name

Real World Use Case

Every Python developer begins by setting up a local environment. Good setup saves time and avoids future issues.

Quiz

  1. What command checks the Python version?
  2. Why is PATH useful?
  3. Name one Python editor.
  4. What file extension does Python use?

Assignment

Create a folder named practice-lab, add main.py, and print three lines of text.

Summary

You installed Python, verified it works, selected tools, and ran your first script in a real development setup.