Python 3, venv आणि Jupyter install (Data Science)
Read this guide in: English · मराठी · हिंदी
Python 3 install करा, venv तयार करा, Jupyter आणि pandas pip install करा (sklearn नाही), मग notebook launch करा. हा Data Science course चा setup lap आहे.
चला मित्रांनो! तुटलेली installs weekend खाऊन टाकतात. आज clean path: Python → venv → packages → Jupyter. उभ्या साध्या steps. समजलं का? शेवटी check.
थोडक्यात उत्तर
उभा install path:
- Python 3 install →
python3 --versionconfirm. - Folder:
ds-practice. - venv:
python3 -m venv ds-env. - venv activate करा.
pip install jupyter pandas openpyxl matplotlib seaborn.jupyter notebookकिंवाjupyter lab→ नवीन notebook →print(1+1).
Python3 → venv → pip install → Jupyter → first cell
Language: English · मराठी · हिंदी
या guide आधी काय हवं?
- Software install करता येणारा computer (Windows, macOS किंवा Linux).
- Terminal / command prompt वापरण्याची परवानगी.
- Course: Install Python 3.
Before आणि after
Before — no venv, Jupyter not found.
After — ds-env venv and Jupyter running.
Before: venv नाही, Jupyter missing. After: ds-env active आणि Jupyter चालू.
venv का हवा?
- एका project साठी packages ची folder.
- Class work system Python शी भांडत नाही.
ds-envdelete करून पुन्हा बनवता येतो — OS reinstall नको.
Activate नंतर prompt वर बहुतेक (ds-env) दिसतं. which python / where python venv आत दाखवतो.
Step 1 — Python 3 install
- python.org installer किंवा OS package manager.
- Windows वर “Add Python to PATH” enable करा.
- नवीन terminal उघडा.
python3 --version(काही Windows वरpython --version).
हवं: 3.x version string, error नाही.
Step 2 — Project folder + venv
mkdir ds-practice
cd ds-practice
python3 -m venv ds-env
Activate:
- Linux/macOS:
source ds-env/bin/activate - Windows cmd:
ds-env\Scripts\activate - Windows PowerShell:
ds-env\Scripts\Activate.ps1
Course: Project folder and venv.
Step 3 — Packages (sklearn नाही)
python -m pip install --upgrade pip
pip install jupyter pandas openpyxl matplotlib seaborn
का हे:
- jupyter — notebooks.
- pandas — DataFrames.
- openpyxl — Excel.
- matplotlib / seaborn — charts.
sklearn का नाही: हा course ML model training exclude करतो. Install packages (no sklearn).
Step 4 — Jupyter launch
jupyter notebook
किंवा jupyter lab.
उभी checks:
- Browser मध्ये Jupyter UI.
- New → Notebook → Python 3.
- Cell:
print(1+1)→ 2. - Cell:
import pandas as pd; print(pd.__version__).
Common problems
| Problem | Likely cause | Fix |
|---|---|---|
python3: command not found |
Install/PATH | Reinstall; नवीन terminal |
jupyter: command not found |
venv inactive | Activate, किंवा python -m jupyter notebook |
| pip चुकीच्या जागी | Activate विसरले | Activate; which python |
| Excel read fail | openpyxl missing | venv मध्ये pip install openpyxl |
| Port busy | जुना Jupyter | Session बंद / दुसरा port |
Tiny first notebook
shop_sales.csv— Mumbai 120, Pune 70.df = pd.read_csv("shop_sales.csv")df["sales"].sum()→ 190- एका sitting मध्ये install + pandas सिद्ध.
Ravindra Bagale's Tip
python --version आणि notebook cell मध्ये 190 चा screenshot ठेवा. तो pair लांब story पेक्षा setup सिद्ध करतो. समजलं का?
Practice task
ds-envनावाचा venv.- Quick answer ची package list (sklearn नाही).
- Jupyter →
import pandas as pd. - एक Markdown cell: “Setup done — next DataFrame”.
Learn it properly
Related: Python for data science beginners · pandas DataFrame beginners
समजलं का? Python 3, venv, sklearn नसलेल्या pip packages, Jupyter open, पहिला cell green. मग CSV load. आता पुढे जाऊया.
Frequently asked questions
What is a venv?
A virtual environment: an isolated folder of Python packages so class projects do not break your system Python.
Do I need Anaconda?
Optional. A plain Python + venv + pip path is enough for this course.
Why not install sklearn?
This Data Science course explicitly excludes machine learning model training. Stay with pandas, cleaning, EDA and charts.
jupyter: command not found?
Activate the venv first, or call python -m jupyter notebook.
Windows vs Linux/macOS?
Commands differ for activation paths; Python and pip ideas stay the same. Follow the course setup chapter for screenshots.
Next after install?
Learn Series vs DataFrame, then read_csv.