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:
python --version
If needed, try:
python3 --version
Expected result:
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
Recommended Setup: VS Code
Install these extensions:
- Python
- Pylance
- Jupyter (optional)
Step 4: Create Your First Project Folder
Example:
python-projects/
hello-python/
Inside it, create a file named:
main.py
Step 5: Run Code in Your Editor
Add this code:
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
- Install Python
- Confirm version
- Create a project folder
- 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
- What command checks the Python version?
- Why is PATH useful?
- Name one Python editor.
- 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.