Step-by-Step Guide: Installing Anaconda, VS Code, and Running Your First Python Program
In the previous Post, we saw:
👇
Today's Post will focus on installing a basic Python syntax code along with Anaconda and Vs Code Installation
Step 1: Installing Anaconda
Downloading Anaconda
The first step is to visit the Anaconda download page.
You will see a "Download Anaconda" button at the top.
Clicking this button will open a new webpage where you might see a registration link.
Skip the registration for now.
After skipping, you will see two installation options:
- Anaconda (Full package, ~1GB)
- Miniconda (Lightweight version)
Anaconda vs. Miniconda
| Feature | Anaconda | Miniconda |
|---|---|---|
| Size | ~1GB (Complete package) | Smaller (Only essential tools) |
| Includes | Jupyter Notebook, Spyder, etc. | Only Python & Conda |
| Best for | Beginners needing all tools | Advanced users who need minimal setup |
For this tutorial, we will install Miniconda since it is lightweight and sufficient for our needs.
Click Download Miniconda and run the installer.
Follow the setup steps:
- Click Next → Agree → Next → Install.
- Do not add to PATH yet (we will do this later).
- Wait for installation (1-2 minutes).
- Once installed, click Finish.
A "Getting Started with Conda" documentation may open—close it for now.
Step 2: Verifying Python Installation
To check if Python is installed correctly:
- Open Anaconda Prompt (Search for it in the Start Menu).
- Type:
python --version (or) python -V
You should see the installed Python version (e.g., Python 3.4).
Step 3: Installing VS Code (Best Python IDE)
What is an IDE?
An Integrated Development Environment (IDE) provides tools for coding, debugging, and running programs efficiently.
Why VS Code?
- ✓ Lightweight & Fast
- ✓ Supports Multiple Languages
- ✓ Great for Beginners & Professionals
Downloading & Installing VS Code
- Go to the VS Code download page.
- Select your OS (Windows, Mac, Linux).
- Run the installer:
- Accept the agreement → Next → Install.
Setting Up VS Code for Python
- Open VS Code.
- Install the Python Extension:
- Go to Extensions (Left Panel).
- Search for "Python" and install the official extension.
Step 4: Creating & Running Your First Python Program
Step 4.1: Create a New Python File
- Click File → New File.
- Save the file as
first_program.py(.py is the Python extension). - Write your first code:
print("Hello World")
Step 4.2: Run the Program
Click the "Run Python File" button (Top Right).
A terminal will open at the bottom showing the output:
Hello World
Alternative Method:
Open Anaconda Prompt, navigate to your file location, and run:
python first_program.py
Conclusion
In this tutorial, we:
- ✓ Installed Anaconda/Miniconda
- ✓ Verified Python installation
- ✓ Installed VS Code (Best Python IDE)
- ✓ Created & ran our first Python program
Comments
Post a Comment