Overview π
Before writing any code, you need to properly install your tools and configure your development environment. This tutorial walks you through the complete setup process β clean, simple, and beginner-friendly. Let's get started! π‘
Step 1: Download Python π
Visit the official Python website and download the latest stable version. Choose your OS: Windows, macOS, or Linux.
Download PythonNote
Verify Installation βοΈ
Open your terminal or command prompt and type:
Code Snippet
python --versionCode Snippet
pip --versionIf both commands show versions, youβre good to go! π
Step 2: Install a Code Editor βοΈ
The recommended editor is Visual Studio Code (VS Code) because of its extensions, debugging tools, and clean interface.
Download VS CodeInstall Python Extension π§©
Open VS Code β Go to Extensions β Search "Python" β Install the official Python extension.

Note
Step 3: Set Up a Project Folder π
Create a folder where your Python files will live. Example:
Code Snippet
mkdir python-projects
cd python-projectsNow open this folder in VS Code:
Code Snippet
code .Step 4: Create Your First File π
Inside VS Code, create a new file called main.py and write:
main.py
print("Installation successful!")Run the file in the terminal:
Code Snippet
python main.pyπ You just executed your first Python script!
Step 5: Configure Virtual Environments (Recommended) π§
Virtual environments keep project dependencies separate. This prevents version conflicts and ensures stable development.
Create a Virtual Environment
Code Snippet
python -m venv envActivate the Environment
- Windows: env\Scripts\activate
- macOS/Linux: source env/bin/activate
Note
Step 6: Install Required Packages π¦
Use pip to install libraries:
Code Snippet
pip install requestsTo see installed packages:
Code Snippet
pip listStep 7: Optional β Install Git (Version Control) π§
Git helps you track code changes and collaborate with teams. Highly recommended for all developers.
Download GitVerify Git Installation
Code Snippet
git --versionSetup Complete π
Congratulations! You now have a fully working development environment with Python, VS Code, virtual environments, and package management ready to go.
Want a tutorial on writing Python code or exploring advanced tools? Just ask! π